Skip to main content
Version: 1.0.0

not

not* ( aBoolean : boolean ) : boolean

ParameterTypeDescription
aBooleanbooleanBoolean value to negate
ResultbooleanOpposite of aBoolean

Description

The not function returns the negation of aBoolean, changing true to false or false to true.

Example

This example first assigns true to a variable, then changes the variable value to false, and then back to true.

 var vResult : boolean
vResult = true // vResult is set to true
vResult = not(vResult) // vResult is set to false
vResult = not(vResult) // vResult is set to true

See also

false
true