Description |
Loops through items in a list (comma, carriage return, or other delimited text). With each successive loop a block of steps is executed and the current index variable is updated with the next item in the list. The loop ends when at the end of the list or when a Break is encountered. |
Declaration |
<AMLOOPLIST LIST="text [list]" RESULTVARIABLE="text
[varname]" DELIMITER="text [options]" SORT="text [options]"> |
Examples |
<AMVARIABLE NAME="thenames">Dustin,Scott,Jeff,Kirsten</AMVARIABLE>
<!--- This Workflow shows reading in a file with multiple
lines. Each line of the file is treated as a list item. To use it, you
must create a text file called c:\thelistfile.txt
and add a few lines to it---> |
General Tab Parameters |
List: Specifies a list of data to Loop through. The List can be delimited by a variety of characters. Text, Required Populate variable with list item: Specifies the variable to populate with the current list item. With each successive loop, this variable will be populated with the next item in the list. Number, Optional Default - 0 Delimiter: Specifies the character that delimits the items in the list. (Do not add a space between items, unless the delimiter is a space.)
Text, Optional - Default - Comma |
Advanced Tab Parameters |
Output list: Specifies whether a sort order should be applied to the values before the loop begins. For example, selecting "ascending" would return the list items in alphabetical order. The available options are:
Text [options], Optional (default "none") |
See Also |
Loop, Loop Files, Loop Windows, Loop Processes, Loop Expression, Loop Dataset, Break, End Loop |