Skip to content

not ​

php
bool not(bool $param)

Returns the negated value of $param. Equivalent to the ! (negation) operator.

Example:

php
if (not(false)) {
print("This condition is always true");
} else {
print("This condition is always false");
}

Result:

This condition is always true