Foreach [ CSV ]
New in 2021!   Eonza automation software - free, open source cross-platform automation software for easy creation and management of scripts.

Foreach [ CSV ]

Enumerates all lines of the specified CSV or text file. The command can contain other commands that will be executed for the each line.CSV format looks like

string 1_1,"string 1_2",string 1_3
string 2_1,"string 2_2",string 2_3 
Description
Optionally, you may add comments here describing the purpose of this element.
Variable name
Specify variables names for the each part of CSV data. Delimit them by comma. The each variable will equal the according part of the CSV line. You can use these variables in inner commands. For example, you can specify variables name,company,email for the CSV with the such structure
John Smith,"My Company, Inc.",john@mycompany.com
Alex Terner,"Super Ltd.",terner@super.com 
..... 
Filename
You can specify the CSV file for processing.
Text
Specify the multi-line CSV text for enumerating. If you specified the filename than these lines are enumerated after lines of the file. If you want to enumerate CSV value of the variable, specify just the name of the variable with CSV data here.
Separator
Specify a separator between CSV data.
Limit character
Specify a limit character CSV data. It is used if CSV data item contains a separator character.
"My company, Inc",email@company.com