Oihana PHP Arango

allGreaterThan.php

Table of Contents

Functions

allGreaterThan()  : string
Returns an AQL expression that checks if **all elements** of an array are greater than a given value.

Functions

allGreaterThan()

Returns an AQL expression that checks if **all elements** of an array are greater than a given value.

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

Equivalent to the ArangoDB ALL > array comparison operator.

Example:

  • [ 3, 4, 5 ] ALL > 2 returns true
  • [ 1, 2, 3 ] ALL > 2 returns false
Parameters
$leftOperand : mixed

The array or expression to evaluate.

$rightOperand : mixed

The value or expression to compare against.

Tags
example
echo allGreaterThan('[ 1, 2, 3 ]', 2);
// [ 1, 2, 3 ] ALL > 2

echo allGreaterThan('scores', 10);
// scores ALL > 10
see
https://docs.arangodb.com/stable/aql/operators/#array-comparison-operators
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL predicate string.

On this page

Search results