Skip to content

Commit

Permalink
Add note that counter starts at 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper committed Oct 17, 2023
1 parent bd40d71 commit 38be39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/function_help/json/array_foreach
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "an array"
}, {
"arg": "expression",
"description": "an expression to evaluate on each item. The variable `@element` will be replaced by the current value and the variable `@counter` by the current counter."
"description": "an expression to evaluate on each item. The variable `@element` will be replaced by the current value and the variable `@counter` by the current counter (starting with 0)."
}],
"examples": [{
"expression": "array_foreach(array('a','b','c'),upper(@element))",
Expand Down

0 comments on commit 38be39e

Please sign in to comment.