From 17fb132f4dc8dabae07cd13e800f822062810e7f Mon Sep 17 00:00:00 2001 From: Pelayo <93575721+pelayogb@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:30:16 +0100 Subject: [PATCH] Update doc/manuals/orion-api.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fermín Galán Márquez --- doc/manuals/orion-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manuals/orion-api.md b/doc/manuals/orion-api.md index 8dbb482647..9758f45071 100644 --- a/doc/manuals/orion-api.md +++ b/doc/manuals/orion-api.md @@ -3255,7 +3255,7 @@ It can be checked at https://www.epochconverter.com that 1720606949 corresponds As failsafe behaviour, evaluation returns `null` in the following cases: * Some of the transformation used in the expression is unknown (e.g. `A|undefinedExpression`) -* Operations with identifiers that are not defined in the context are used. For instance, `(A==null)?0:A` will result in `null` (and not `0`) if `A` is not in the context, due to `==` is an operation that cannot be done on undefined identifiers. However, `A||0` will work (i.e. `0` will result if `A` is not in the context), as `||` is not considered an operation on `A`. Another possibility is to use the != operator which behaves differently than == . In this case A != null ? 1: 0 if A is not in the context it will be assigned the value 0. +* Operations with identifiers that are not defined in the context are used. For instance, `(A==null)?0:A` will result in `null` (and not `0`) if `A` is not in the context, due to `==` is an operation that cannot be done on undefined identifiers. However, `A||0` will work (i.e. `0` will result if `A` is not in the context), as `||` is not considered an operation on `A`. Another possibility is to use the `!=` operator which behaves differently than `==`. In this case `A != null ? 1: 0`, if `A` is not in the context it will be assigned the value `0`. * Syntax error in the JEXL expression (e.g. `A[0|uppercase`) ### Known limitations