Berserk Docs
Scalar FunctionsMath Functions

not

Return the logical negation of a boolean: `true` becomes `false`, `false` becomes `true`, and null stays null.

not(x) is the same as not x and !x.

Syntax

not(expr)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print not (true), not (1 > 2), not (bool(null))
print_0 (bool)print_1 (bool)print_2 (bool)
falsetruenull

On this page