LOOP FOR EACH (xmlnode)
Syntax
![]()
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
LOOP FOR EACH <XmlNode> IN <XmlNodes>
<Code lines>
ENDLOOP
Description
Loops through all the occurrences in the list of <XmlNodes>. The current node will be available in the variable <XmlNode>.
Diagram
Returned value type
None
Parameters
Parameter | Description |
<XmlNode> |
A variable of type XMLNODE to hold the current node in the list of XmlNodes |
<XmlNodes> |
The list of XmlNodes to cycle through |
<Code lines> |
Code that is performed each time the loop is executed. The loop will be terminated in one of the
following cases:
|
Example
i := 1
loop for each currnode in nodeslist
currnode.value := 'Node ' + format (i, onezero)
i += 1
endloop
loop for each currnode in nodeslist
currnode.value := 'Node ' + format (i, onezero)
i += 1
endloop