Skip to main content

$$not

Returns the opposite of the input's boolean evaluated value (this returns the opposite of $$boolean)

Usage​

{ 
"$$not": /* input */,
"style": "JAVA" /* or JS */
}
"$$not([style]):{input}"
note

Concrete values in the usage example are default values.

Returns​

boolean

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primaryanynull
styleenumJAVA/ JSJAVAStyle of considering truthy values (JS only relates to string handling; not objects and arrays)

Examples​

Input

Definition

Output

true
"$$not:$"
false
5
"$$not:$"
false
"true"
"$$not:$"
false
false
"$$not:$"
true
"yes"
"$$not:$"
true
"yes"
"$$not(JS):$"
false
true
{
"$$not": "$"
}
false
false
{
"$$not": "$"
}
true
"yes"
{
"$$not": "$",
"style": "JS"
}
false