Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7670 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a series of "if" statements within a loop, I've tried a few combinations, but when I run the script, it either:

1. Stops when the criteria is not met and does not go on to the next if statements that follow (I need the script to check the other "if"'s).

2. It just checks the first "if" statement and does not even go on to the next statements...

I've tried this:

Loop

If......

Print

If.....

Print

End If

End If

Exit Loop

I'v also tried this

Loop

If......

Print

Else

Refresh Window (Just to give it something to do so it goes on to the next If)

If.....

Print

End If

End If

Exit Loop

How do I do this?? I have 9 if statements and I need all of them to be executed.

Thanks a lot for the help guys!

Posted

I just want to clarify that the other If statement must be executed wether the conditional is met or not. That's where my problem lies in the first place.

Posted

Your second script above means that the first, the second, or neither will occur, in that order, which is fairly normal logic. But if you want the tests to occur independently, so that in some cases both actions happen, then each is a self-standing If.

If...

Print

End If

If...

Print

End if

In other words, it just keeps on going, no matter what happens before it. Whenever the condition is met it performs the action, however many.

This topic is 7670 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.