From d1575670c0c33252514e96ba14b2b74e75ac461d Mon Sep 17 00:00:00 2001 From: jsteemann Date: Mon, 30 Jan 2017 17:30:58 +0100 Subject: [PATCH] updated documentation --- Documentation/Books/AQL/Operators.mdpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/Books/AQL/Operators.mdpp b/Documentation/Books/AQL/Operators.mdpp index 0c58cb06b6..91d25268bb 100644 --- a/Documentation/Books/AQL/Operators.mdpp +++ b/Documentation/Books/AQL/Operators.mdpp @@ -270,6 +270,17 @@ evaluates to true, and the third operand otherwise. u.age > 15 || u.active == true ? u.userId : null ``` +There is also a shortcut variant of the ternary operator with just two +operands. This variant can be used when the expression for the boolean +condition and the return value should be the same: + +*Examples* + +```js +u.value ? : 'value is null, 0 or not present' +``` + + #### Range operator AQL supports expressing simple numeric ranges with the *..* operator.