Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"If" problem... simple but stuck anyway

Featured Replies

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!

  • Author

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.

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.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.