SyntaxFix
Write A Post
Hire A Developer
Questions
That's the way to create complex boolean expressions: combine them with AND and OR. The snippet you posted doesn't throw any error for the IF.