Login

Fancade Wiki

Updated Loop.md (markdown)

... ...
@@ -1,7 +1,7 @@
1 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|List Element]].
2 2
3 3
Inputs
4
- Start: The Loop blocks starts looping from the Start input.
4
- Start: The Loop block starts looping from the Start input.
5 5
- Stop: Then it stops looping once it reaches the Stop input.
6 6
7 7
Outputs
... ...
@@ -10,6 +10,13 @@ Outputs
10 10
11 11
[[/uploads/Loop.png]]
12 12
13
## Notes
14
15
- The counter always steps by 1 (or -1, if Start is greater than Stop)
16
- The counter does not output the Stop value
17
- If a non-integer value is provided for Start, it's rounded down to the next smallest integer.
18
- If a non-integer value is provided for Stop, it's rounded up to the next biggest integer.
19
13 20
If you were to start the loop at 0 and stop it at 5, you would loop the script 5 times (Count) and the Counter outputs from 0 to 4 (End). Which shows that the Counter won't output the Stop value by the end of the loop, might want to keep that in mind.
14 21
15 22
[[/uploads/Screenshot_20210128-114243_Fancade.jpg]]
Fancade Wiki