Wiki source code of For values from [value] to [value] in [variable]
Last modified by admin on 2023/10/27 08:57
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Represents a for-loop. Repeats for every integer from a specified value to another specified value. | ||
4 | |||
5 | [[image:for-values-from-brick.png]] | ||
6 | |||
7 | The "End of loop" will be created automatically. | ||
8 | |||
9 | [[image:Forever-end_brick.png]] | ||
10 | ))) | ||
11 | |||
12 | (% class="row" %) | ||
13 | ((( | ||
14 | (% class="col-xs-12 col-sm-6" %) | ||
15 | ((( | ||
16 | (% class="box" %) | ||
17 | ((( | ||
18 | ==== **Example** ==== | ||
19 | |||
20 | In this example a for-loop will count from 1 to 100, whereby every number will be checked if it is dividable by a given number. | ||
21 | |||
22 | [[image:for-values-from-example.png]] | ||
23 | ))) | ||
24 | ))) | ||
25 | |||
26 | (% class="col-xs-12 col-sm-6" %) | ||
27 | ((( | ||
28 | (% class="box" %) | ||
29 | ((( | ||
30 | ==== **Result** ==== | ||
31 | |||
32 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/app/project/6ddc3940-d8b2-11ea-a5c3-005056a36f47]] | ||
33 | |||
34 | [[image:for-values-from-example2.gif]] | ||
35 | ))) | ||
36 | ))) | ||
37 | ))) | ||
38 | |||
39 | (% id="gtx-trans" style="position: absolute; left: 901px; top: 819px;" %) | ||
40 | ((( | ||
41 | (% class="gtx-trans-icon" %) | ||
42 | ((( | ||
43 | |||
44 | ))) | ||
45 | ))) |