1. Handlebars Helpers
  2. Each

Handlebars Helpers

Each

Loops over arrays or objects during Handlebars substitution. Useful for rendering lists, repeated message sections, document content, and prompt context.

NOTE

Example Looping over an object

This example takes the data submitted on the fields of the action.
It then loops over the data and converts it to a CSV formatted text value saved in stubpost_data_csv.

Example definition:

loading...

Action context:

loading...

Substituted definition

loading...

Example Looping over an array

This example loops over and array and outputs each text value.

Example definition:

loading...

Action context:

loading...

Substituted definition

loading...

Example Looping over an object with nested values

This example loops over an array of objects and outputs certain values.

Example definition:

loading...

Action context:

loading...

Substituted definition

loading...