Skip to main content
NiCE KnowledgeKnowledge

We will be closed on Friday July 3rd, 2026 in observance of Independence Day

NiCE Knowledge Success Center

Use the foreach statement in DekiScript

Applies to:
All versions
Role required:
Draft Contributor
NiCE KM 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.

Examples

        Input Output

Iterating over a list:

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

123

Iterating over a map:

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

123

  • Was this article helpful?