Skip to main content
NICE CXone Expert

Our office will be closed on Monday, December 26th and January 2nd, for Christmas and New Years.

Expert Success Center

Use the foreach statement in DekiScript

MindTouch DekiScript foreach statements for list or global variables

The foreach statements enables iteration over list or map. The foreach statement also sets the the global variable __count to indicate how many iterations it has performed so far.


        Input Output

Iterating over a list:

{{ foreach(var x in [ 1, 2, 3 ]) { x } }}


Iterating over a map:

{{ foreach(var x in { a: 1, b: 2, c: 3  }) { x } }}


  • Was this article helpful?