Loop TypesThe Loop adapter consists of the following loop types, which differ in the way that conditions are expressed:
For Array LoopA For Array loop iterates once for each element of the array. The loop copies element 0 of the array into the associated subflow parameter and runs the subflow. The process repeats for each element in the array. A For Array loop supports only one-dimensional arrays. However, it supports arrays of data types such as real, integer, string, and boolean. In the subflow of a For Array loop, you can obtain the array index processed from the parameter . However, the run counter starts at 1, and the array indexes start at 0. To avoid confusion, you might want to include a calculator component in the subflow with the following expression: Array parameters can vary in size at run time. If you include a resizable input or input/output array in a For Array loop, the simulation process uses the actual size at run time to determine the number of loops. If you include a resizable output array, the app adjusts its size at run time to match the number of loops. The output arrays are assigned correct values from the subflow for both sequential and parallel execution. For information about how parameters other than the arrays behave for sequential and parallel For Array loops, see About Parallel Loop Execution. | |||||||||||||||||||||||