Types of Loops
- Updated2022-01-06
- 1 minute(s) read
Types of Loops
You can use the following loops to repeat code in G Dataflow: a For Loop and a While Loop.
| Loop | Behavior | Example | Diagram |
|---|---|---|---|
| For Loop | Repeats the code inside the loop for a set number of iterations. | Generate five random numbers between 1 and 10. |
|
| While Loop | Repeats the code inside the loop until a specified condition is met. | Continue rolling a die until the value of the die is 6. |
|