not
not ( aBoolean : boolean ) : boolean
Parameter | Type | Description | |
---|---|---|---|
aBoolean | boolean | -> | Boolean value to negate |
Result | boolean | <- | 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