Login

Fancade Wiki

Updated Loop.md (markdown)

... ...
@@ -1,9 +1,11 @@
1
The loop block is used to loop the same script several times.
1
The Loop block is used to run a script multiple times in the same frame. Often used for processing every element in a list.
2 2
3
It has two inputs, Start and Stop. The loop block starts looping from the Start input, and stops looping once it reaches the Stop value. If the Start input is greater than the Stop input, it will count down instead of counting up.
3
Inputs
4
- Start: The Loop blocks starts looping from the Start input.
5
- Stop: Then it stops looping once it reaches the Stop input.
4 6
5
While the loop block is executing, it will execute the yellow Do wire at every loop. Connect this wire to the scripts you would like to loop.
6
7
The counter output will output the current loop number, AKA the current iteration.
7
Outputs
8
- Do: Plug this to the script that you want to run for every loop.
9
- Counter: Outputs the current loop number counting from the Start value. If the Start value is greater than the Stop value, it counts down instead of up.
8 10
9 11
[[/uploads/Loop.png]]
... ...
\ No newline at end of file
Fancade Wiki