Oihana PHP Arango

logicalOr.php

Table of Contents

Functions

logicalOr()  : string
Returns an AQL expression that combines two predicates using the logical OR operator (||).

Functions

logicalOr()

Returns an AQL expression that combines two predicates using the logical OR operator (||).

logicalOr(mixed $leftOperand, mixed $rightOperand) : string

This function mirrors the LogicalTrait::or() method with a standalone functional API.

Example semantics:

  • a == 2 || b == 3
Parameters
$leftOperand : mixed

The left-hand expression/predicate.

$rightOperand : mixed

The right-hand expression/predicate.

Tags
example

echo logicalOr('a == 2', 'b == 3'); // a == 2 || b == 3

see
https://docs.arangodb.com/stable/aql/operators/#logical-operators
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL predicate string.

On this page

Search results