Not
Not ( boolean ) : Boolean
Parameter | Type | Description | |
---|---|---|---|
boolean | Boolean | → | Boolean value to negate |
Function result | Boolean | ← | Opposite of Boolean |
Description
The Not function returns the negation of boolean, 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.
vResult:=True // vResult is set to True
vResult:=Not(vResult) // vResult is set to False
vResult:=Not(vResult) // vResult is set to True