Operator: Logical Not
Operator: Logical Not

Operator: Logical Not

Returns the logical opposite of a value. Resultant value type is always boolean.

OperatorValue Result
!BOOLEAN[false]=BOOLEAN[true]
!BOOLEAN[true]=BOOLEAN[false]
!FLOAT[Infinity]=BOOLEAN[false]
!FLOAT[-Infinity]=BOOLEAN[false]
!FLOAT[NaN]=BOOLEAN[true]
!INTEGER[0]=BOOLEAN[true]
!FLOAT[0.0]=BOOLEAN[true]
!INTEGER[10]=BOOLEAN[false]
!INTEGER[3]=BOOLEAN[false]
!FLOAT[10.0]=BOOLEAN[false]
!FLOAT[3.0]=BOOLEAN[false]
!FLOAT[10.5]=BOOLEAN[false]
!FLOAT[3.5]=BOOLEAN[false]
!INTEGER[-10]=BOOLEAN[false]
!INTEGER[-3]=BOOLEAN[false]
!FLOAT[-10.0]=BOOLEAN[false]
!FLOAT[-3.0]=BOOLEAN[false]
!FLOAT[-10.5]=BOOLEAN[false]
!FLOAT[-3.5]=BOOLEAN[false]
!STRING[]=BOOLEAN[true]
!STRING[ ]=BOOLEAN[false]
!STRING[0]=BOOLEAN[false]
!STRING[0.0]=BOOLEAN[false]
!STRING[10]=BOOLEAN[false]
!STRING[3]=BOOLEAN[false]
!STRING[10.0]=BOOLEAN[false]
!STRING[3.0]=BOOLEAN[false]
!STRING[10.5]=BOOLEAN[false]
!STRING[3.5]=BOOLEAN[false]
!STRING[-10]=BOOLEAN[false]
!STRING[-3]=BOOLEAN[false]
!STRING[-10.0]=BOOLEAN[false]
!STRING[-3.0]=BOOLEAN[false]
!STRING[-10.5]=BOOLEAN[false]
!STRING[-3.5]=BOOLEAN[false]
!STRING[apple]=BOOLEAN[false]
!STRING[banana]=BOOLEAN[false]
!STRING[NaN]=BOOLEAN[false]
!STRING[infinity]=BOOLEAN[false]
!LIST[[]]=BOOLEAN[false]
!LIST[[BOOLEAN[true], INTEGER[3], FLOAT[5.0], STRING[orange]]]=BOOLEAN[false]
×

Modal Header