From 090068c3e1d81b80ae5db2df5362ecf99d29743d Mon Sep 17 00:00:00 2001 From: jsteemann Date: Sat, 23 Apr 2016 17:32:16 +0200 Subject: [PATCH] updated documentation for short-circuitery --- Documentation/Books/Users/Aql/Operators.mdpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/Books/Users/Aql/Operators.mdpp b/Documentation/Books/Users/Aql/Operators.mdpp index a3ccb4269a..6787e2d317 100644 --- a/Documentation/Books/Users/Aql/Operators.mdpp +++ b/Documentation/Books/Users/Aql/Operators.mdpp @@ -108,7 +108,10 @@ The alternative forms are aliases and functionally equivalent to the regular operators. The two-operand logical operators in AQL will be executed with short-circuit -evaluation. The result of the logical operators in AQL is defined as follows: +evaluation (except if one of the operands is or includes a subquery. In this +case the subquery will be pulled out an evaluated before the logical operator). + +The result of the logical operators in AQL is defined as follows: - `lhs && rhs` will return `lhs` if it is `false` or would be `false` when converted into a boolean. If `lhs` is `true` or would be `true` when converted to a boolean,