What is wrong with my syntax?


#1


I'm not sure what is wrong with my second if/else statement.


#2

check your if statements....

if(condition)
{
do something
}


#3

That semicolon after the "else if" closing brace shouldn't be there


#4

Hi I think you missing a } after your else statement for closing the the compare function


#5

Thanks guys, turns out that semicolon was screwing me over. XD


#6

ropnog you are very smart man, you help me program code very good


#7

Thank you bocsyscb. You are nice me


#8

you sir are a good man