More exactely, in the if statement I think that you wanted to compare the second array-component with the integer value - 1. So what are you doing is wrong because if(array[1]=1) tests if that array-component can assign the integer 1 which is always true. I think you wanted to write if(array[1]==1) which tests if that component of array has memorized the value 1. As ciphermagi says, == is a test operator.
Your program seems to be a bit buggy. you need to nest your if statements. as of now you choose option one but it runs through the other options as well.
if(statement)
{
text
else if(statement)
{
else if(statement)
text
else
text
}
}
then the propper amount of closing brackets.