You got the exact same error? That's odd. Double check any other IF statements you might have. If they're like the last one, make sure they have colons. If they look like this, IF(A==B) THEN Command Command Command ENDIF make sure the ENDIF is there. Something is wrong with one or more IF statements.