Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expressioncomment
{{array.first}}Gets the first object
{{array.first}}Gets the last object
{{array.index_n}}Gets the index object, n as number
{{array.all}}Get all the items, then use normal Mustache Iteration .example: {"body":"{{#array.all}}{{name}}{{/array}}"}
{{array.all}}"}sumInteger}}If an array is of type integer, example [1,2,3,4] then iHub can sum that to be 10
{{array.sumDouble}}If an array is of type double, example [1.7, 2.0, 3.0, 4.0] then iHub can sum that to be 10.7

Mustache

Info
titleIterate over an array

example variable result of variable users: [ A, B , C ]

Body:

{{#users}}
"{{.}}"
{{/users}}

Result:

A,B,C,


...