Boolean_And

Test each of the parameters and return TRUE if all parameters are TRUE. Return FALSE if one or more 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_And (Test1, Test2, Test3, etc.)

Return Value

Returns a Boolean. TRUE if all test values are TRUE; returns FALSE otherwise.

Example

Script(Boolean_And_Test)
Boolean(bResultAll)
Boolean(bResult1)
Boolean(bResult2)
Activate(From_Menu)
bResult1 = Ask_OK_Cancel("Hit OK in every message box", "Message 1", FALSE)
bResult2 = Ask_OK_Cancel("Hit OK again", "Message 2", FALSE)
bResultAll = Boolean_And(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_Or, 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

Privacy and Legal