I don't mean to put everything in single line, you're missing the outer parenthesis `if (...cond1... cond2...) {...}` while you have: `if (cond1) (cond2) (cond3) {...}`