I can not seem to get If statements with an OR to work correctly. Here is a sample:
Let>a=one
Let>b=two
If>((%a%="one") OR (%b%="one"))
MessageModal>"A or B is one.
else
MessageModal>"Neither A or B is one."
EndIf
End
The message is always "Neither A or B is one." always appears. Should be "A or B is one.".
Thanks,
Gerry
If statements with complex expressions
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 4
- Joined: Tue Dec 09, 2008 2:27 am
Your outermost parenthesis needs to be braces.
Code: Select all
Let>a=one
Let>b=two
If>{(%a%="one") OR (%b%="one")}
MessageModal>"A or B is one.
else
MessageModal>"Neither A or B is one."
EndIf
-
- Newbie
- Posts: 4
- Joined: Tue Dec 09, 2008 2:27 am
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Good one Bob...
Take care

Take care
jpuziano
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
