SyntaxFix
Write A Post
Hire A Developer
Questions
If you're not doing the else, why not do:
if (x==2) doSomething();