Skip to content

Commit 042c9fd

Browse files
committed
fix tables using <code> and &vert;
use code
1 parent 5248c3b commit 042c9fd

File tree

1 file changed

+31
-26
lines changed

1 file changed

+31
-26
lines changed

doc/expressionLanguage.md

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -353,36 +353,41 @@ For more details, check JEXL language details
353353

354354
### Examples of expressions
355355

356-
The following table shows expressions and their expected outcomes for a measure
357-
with four attributes: "value" with value 6, "name" with value "DevId629",
358-
an object with value {name: "John", surname: "Doe"} and array of value [1,3].
359-
360-
| Expression | Expected outcome |
361-
|:--------------------------- |:--------------------- |
362-
| '5 * value' | 30 |
363-
| '(6 + value) * 3' | 36 |
364-
| 'value / 12 + 1' | 1.5 |
365-
| '(5 + 2) * (value + 7)' | 91 |
366-
| 'value * 5.2' | 31.2 |
367-
| '"Pruebas " + "De Strings"' | 'Pruebas De Strings' |
368-
| 'name + "value is " +value' | 'DevId629 value is 6' |
356+
The following table shows expressions and their expected outcomes taking into
357+
account the following measures at southbound interface:
358+
359+
* `value` with value 6 (number)
360+
* `name` with value `"DevId629"` (string)
361+
* `object` with value `{name: "John", surname: "Doe"}` (JSON object)
362+
* `array` with value `[1, 3]` (JSON Array)
363+
364+
365+
| Expression | Expected outcome |
366+
|:--------------------------- |:----------------------- |
367+
| `5 * value` | `30` |
368+
| `(6 + value) * 3` | `36` |
369+
| `value / 12 + 1` | `1.5` |
370+
| `(5 + 2) * (value + 7)` | `91` |
371+
| `value * 5.2` | `31.2` |
372+
| `"Pruebas " + "De Strings"` | `"Pruebas De Strings"` |
373+
| `name + "value is " +value` | `"DevId629 value is 6"` |
369374

370375
Support for `trim`, `length`, `substr` and `indexOf` transformations was added.
371376

372-
| Expression | Expected outcome |
373-
|:--------------------------- |:--------------------- |
374-
| '" a "|trim' | 'a' |
375-
| 'name|length' | 8 |
376-
| 'name|indexOf("e")' | 1 |
377-
| 'name|substring(0,name|indexOf("e")+1)'| 'De' |
377+
| Expression | Expected outcome |
378+
|:--------------------------- |:----------------------- |
379+
| <code>" a "&vert;trim</code> | `a` |
380+
| <code>name&vert;length</code> | `8` |
381+
| <code>name&vert;indexOf("e")</code>| `1` |
382+
| <code>name&vert;substring(0,name&vert;indexOf("e")+1)</code>| `"De"` |
378383

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

382-
| Expression | Expected outcome |
383-
|:--------------------------- |:--------------------- |
384-
| 'value == 6? true : false' | true |
385-
| 'value == 6 && name|indexOf("e")>0| true |
386-
| 'array[1]+1' | 3 |
387-
| 'object.name' | 'John' |
388-
| '{type:"Point",coordinates: [value,value]}' | {type:"Point",coordinates: [6,6]}|
387+
| Expression | Expected outcome |
388+
|:----------------------------------- |:----------------------- |
389+
| `value == 6? true : false` | `true` |
390+
| <code>value == 6 && name&vert;indexOf("e")>0</code> | `true` |
391+
| `array[1]+1` | `3` |
392+
| `object.name` | `"John"` |
393+
| `{type:"Point",coordinates: [value,value]}`| `{type:"Point",coordinates: [6,6]}` |

0 commit comments

Comments
 (0)