Yeah, AND and OR work with equalities, but not inequalities, barring negation (i.e. you can't use <, <=, >, or >= when using AND or OR, but you can use !=; it's a bug). With inequalities, you need to use nested IFs. Also, know that comparative equals is different from assignment equals, so for IF statements, you don't need the colon (i.e. "IF %VAR1 = 1").