FOREACH-IN Statement | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release FOREACH-IN Statement FOREACH statements are similar to
WHILE
statements, but have stricter conditions. Given a list of data, they perform
the code in their execution block once for each member of that list.
Syntax
FOREACH $var IN list_A
do_A
Nomenclature
$var |
A variable that is assigned, in turn, to each of the values in
list_A.
|
list_A |
An array, a C# ArrayList, or a C# Hashtable.
|
do_A | The code block that executes once for each value of
$var. |
Example
FOREACH $file IN file_list
BEGIN
IMPORT streets [...]
FROM "C:\Path_To_Data\" + $file;
COMMIT;
END