not
The not
function reverses the value of its boolean argument.
Syntax
not( Expression )
Arguments
- Expression: A boolean expression to be reversed.
Results
Returns the reversed logical value of its boolean argument.
If the argument is null
, or cannot be converted to bool
(using the tobool
function), returns null
.
Examples
These examples return false
:
print not( true )
print not( "true" )
print not( 1 )
print not( 100 )
These examples return true
:
print not( false )
print not( "false" )
print not( 0 )
These examples return null
:
print not( "abc" )
print not( null )