You are here

For Loop

26 July, 2019 - 09:47
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/5b6e61df-b830-48cb-9764-94696cb47c80@1.3

The For Loop structure repeatedly executes the diagram within the structure. The Loop Count specifies the number of times the loop contents must be executed and the Loop Iteration indicates which iteration is currently being executed.

media/image19.png
Figure 5.18 For Loop Structure 

The Loop Count and Loop Iteration are of Integer 32 data types. If the Loop Count is set to N, then the Loop Iteration value range is from 0 toN1. This is illustrated in Loop Count and Final Loop Iteration.

media/image20.png
Figure 5.19 Loop Count 
media/image21.png
Figure 5.20 Final Loop Iteration