{
"type": "forEach",
"params": {
"path": "theList",
"leadingDelimiter": "{:",
"trailingDelimiter": ":}",
"actions": [
{
"type": "if",
"params": {
"condition": {
"mode": "equal",
"left": "{:index:}",
"right": "0"
},
"then": [
{
"type": "showMessage",
"params": {
"text": "first: {:element.text:} of {:count:}"
}
}
],
"else": [
{
"type": "showMessage",
"params": {
"text": "second: {:element.text:} of {:count:}",
"asToast": true
}
}
]
}
}
]
}
}