A FOR loop can be used to iterate through a list of items contained within a script variable, as shown in the following example:
$list = "1"
$list::add("2")
$list::add("3")
FOR($listValue : $list)
@script::log($listValue)
ENDFOR
1
2
3
Related topics
Flow Control