NOT

The function NOT returns the logical inverse of its argument.

This function accepts either the value TRUE or the value FALSE and returns the opposite value. If it is called with an argument of TRUE, it returns FALSE. When called with FALSE, it will return TRUE.

Declaration

NOT(input_boolean) -> logical_inverse

Parameters

input_boolean (type: boolean)
A boolean, either TRUE or FALSE.

Return Values

logical_inverse (type: boolean)
The logical inverse of input_boolean.

Examples

The most straightforward example of the NOT function is to call it with the literal values TRUE and FALSE.

NOT(TRUE) -> FALSE  
NOT(FALSE) -> TRUE

Discussion

The function ISNOTEMPTY is very closely related to the NOT function. Rather than inverting a boolean expression, ISNOTEMPTY determines if a value has contents. For example, is a value the empty List ([]), the empty Object ({}), or the empty String ("").