Skip to content

Commit

Permalink
use code
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 committed Feb 11, 2020
1 parent 5c7b25c commit d829d42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/expressionLanguage.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,18 +376,18 @@ Support for `trim`, `length`, `substr` and `indexOf` transformations was added.

| Expression | Expected outcome |
|:--------------------------- |:----------------------- |
| <pre>" a "&vert;trim</pre> | `a` |
| <code>" a "&vert;trim</code> | `a` |
| <code>name&vert;length</code> | `8` |
| <pre>name&vert;indexOf("e")</pre>| `1` |
| <pre>name&vert;substring(0,name&vert;indexOf("e")+1)</pre>| `"De"` |
| <code>name&vert;indexOf("e")</code>| `1` |
| <code>name&vert;substring(0,name&vert;indexOf("e")+1)</code>| `"De"` |

The following are some expressions not supported by the legacy expression
language:

| Expression | Expected outcome |
|:----------------------------------- |:----------------------- |
| `value == 6? true : false` | `true` |
| <pre>value == 6 && name&vert;indexOf("e")>0</pre> | `true` |
| <code>value == 6 && name&vert;indexOf("e")>0</code> | `true` |
| `array[1]+1` | `3` |
| `object.name` | `"John"` |
| `{type:"Point",coordinates: [value,value]}`| `{type:"Point",coordinates: [6,6]}` |

0 comments on commit d829d42

Please sign in to comment.