Skip to main content

not

not ( aBoolean : boolean ) : boolean

ParameterTypeDescription
aBooleanboolean->Boolean value to negate
Resultboolean<-Opposite 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