Boolean_Set

Set the value of a Boolean variable. A typical use of Boolean_Set is to set a variable to the return value of another action. The equal sign (=) is the symbol for Boolean_Set in the Script Editor.

Parameters

Test

May be a Boolean action, variable, or constraint.

Format

Boolean_Set (Test)

Return Value

Returns a Boolean. TRUE if the test is TRUE, returns FALSE otherwise.

Example

Script(Boolean_Set_Test)
Boolean(bResult)
Activate(From_Menu)
bResult = Ask_OK_Cancel("OK for TRUE, Cancel for FALSE", "Boolean_Set_Test", FALSE)
If(bResult)
Message("bResult is TRUE", 5)
Else
Message("bResult is FALSE", 5)
End_If
Return

See Also

Boolean_Not, Boolean_And, 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