Boolean_Not

Set the value of a Boolean variable to FALSE if the parameter is TRUE. Set the value of a Boolean variable to TRUE if the parameter is FALSE.

Parameters

Test

May be a Boolean action, variable, or constraint.

Format

Boolean_Not (Test)

Return Value

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

Example

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

See Also

Boolean_Set, 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