This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:for [2020/02/28 10:46] 127.0.0.1 external edit |
en:for [2020/04/26 22:26] (current) admin |
||
---|---|---|---|
Line 12: | Line 12: | ||
==== Example ==== | ==== Example ==== | ||
< | < | ||
- | for i = 1 to 10 | + | for i = 1 to 5 |
print i | print i | ||
next i | next i | ||
print "after the for " + i | print "after the for " + i | ||
+ | |||
+ | for k = 5 to 1 step -1 | ||
+ | ? k | ||
+ | next | ||
</ | </ | ||
displays | displays | ||
Line 25: | Line 29: | ||
4 | 4 | ||
5 | 5 | ||
- | 6 | + | after the for 6 |
- | 7 | + | 5 |
- | 8 | + | 4 |
- | 9 | + | 3 |
- | 10 | + | 2 |
- | after the for 11 | + | 1 |
</ | </ | ||
==== See Also ==== | ==== See Also ==== | ||
{{page> | {{page> | ||
+ | |||
+ | ==== History ==== | ||
+ | |2.0.0.0|Variable in Next statement is now optional| |