Syntax error on if condition

Syntax error on if condition