Please use parens around the if-conditions and use == for comparisons.