This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:examples:for [2017/10/01 15:41] simplesi |
blocks:examples:for [2017/10/01 16:24] (current) simplesi |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |{{:blocks:examples:for.png|}}|This will loop with {{:blocks:i.png|}} starting off at 1 and going up each time by 1 until it reaches 10| | + | |{{:blocks:examples:for.png|}}|This will loop with {{:blocks:i.png|}} starting off at 1\\ and going up each time by 1 until it reaches 10| |
+ | |{{:blocks:examples:forcount.png|}}|The {{:blocks:i.png|}} can be replaced with {{:blocks:examples:count.png|}}\\ by simply clicking on the {{:blocks:i.png|}} after the for and\\ changing it to a more meaningful name| | ||
+ | |{{:blocks:examples:forrange.png|}}|By using the range block, you can change\\ the starting value, the end value and the\\ value used to increment each time through the loop| | ||
+ | |{{:blocks:examples:forcountdown.png|}}|Using range, you can even count backwards as well| |