For some reason, the IF statement doesn’t like strings or numbers that aren’t set inside a variable. I can never get it to work unless I set it to a variable first. Then use the variable name (ex. @tmp or @OBX4) in place of the number in the IF statement. Also, as said previously, don’t forget to use the iteration variable (%g1) inside the IF statement if it is within the iterate. Let me know if it works for you.
Tom