Test each of the parameters and return TRUE if one or more parameters are TRUE. Return FALSE if all parameters are FALSE. One to five parameters may be used for this action.
All tests will be evaluated each time this action is taken. Use Boolean variables as the parameters instead of actions to make the script easier to read and understand.
Parameters
Test1 |
A Boolean variable, constant, or action. |
Test2 |
An optional Boolean variable, constant, or action. |
Test3 |
An optional Boolean variable, constant, or action. |
Test4 |
An optional Boolean variable, constant, or action. |
Test5 |
An optional Boolean variable, constant, or action. |
Format
Boolean_Or (Test1, Test2, Test 3, etc.)
Return Value
Returns a Boolean. TRUE if one or more test values are TRUE. Returns FALSE otherwise.
Example
Script(Boolean_Or_Test)
Boolean(bResultAll)
Boolean(bResult1)
Boolean(bResult2)
Activate(From_Menu)
bResult1 = Ask_OK_Cancel("Hit OK in one message box", "Message 1", FALSE)
bResult2 = Ask_OK_Cancel("Hit OK if you hit Cancel in the last box", "Message 2", FALSE)
bResultAll = Boolean_Or(bResult1, bResult2)
If(bResultAll)
Message("bResultAll is TRUE", 5)
Else
Message("bResultAll is FALSE", 5)
End_If
Return
See Also
Boolean_Set, Boolean_Not, Boolean_And, Boolean_Equal, Boolean_Not_Equal, Ask_OK_Cancel, Ask_Yes_No
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other