I've had similar problems with multiple then statements. You're looking for 'radio button' type of operation. It can be done currently, but it's not as pretty as it could be. I'll look for what I have (related) tomorrow, when I have more time. I remember not using boolean variables, I used numeric ones, and I think I set variables in the loop and not in the 'then' statement. Like I said, I'll check tomorrow. I'm sure the multiple then statement thing will get sorted out, I just wanted to confirm you're on the right track with your thinking. I think I reported this as a bug, but I'll check that thread.