logicalNot.php
Table of Contents
Functions
- logicalNot() : string
- Returns an AQL expression that negates a predicate using the logical NOT operator (!).
Functions
logicalNot()
Returns an AQL expression that negates a predicate using the logical NOT operator (!).
logicalNot(mixed $expression[, bool $useParentheses = false ][, bool $trim = false ]) : string
This function mirrors the LogicalTrait::not() method with a standalone functional API.
Example semantics:
!(a == 2)when parentheses are requested!a == 2when parentheses are not requested
Parameters
- $expression : mixed
-
The expression or predicate to negate.
- $useParentheses : bool = false
-
If true, wrap the expression in parentheses.
- $trim : bool = false
-
Whether to trim existing
$left/$rightcharacters (default: false).
Tags
Return values
string —The AQL predicate string.