Skip to content

Commit

Permalink
Merge pull request #4631 from telefonicaid/pelayogb-patch-1
Browse files Browse the repository at this point in the history
Update orion-api.md
  • Loading branch information
fgalan authored Nov 5, 2024
2 parents 8f540c4 + 17fb132 commit 496f209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manuals/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
* 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
Expand Down

0 comments on commit 496f209

Please sign in to comment.