This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:for [2016/08/13 08:59] admin |
en:for [2016/08/13 09:00] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== For / Next (Statement) ===== | ===== For / Next (Statement) ===== | ||
==== Format ==== | ==== Format ==== | ||
- | **for** [[variables|variable]] = [[floatexpressions|start_expression]] **to** | + | **for** [[variables|variable]] = [[floatexpressions|start_expression]] **to** |
(tab)[[programsyntax|statement(s)]]\\ | (tab)[[programsyntax|statement(s)]]\\ | ||
**next** [[variables|variable]] | **next** [[variables|variable]] | ||
Line 8: | Line 8: | ||
The FOR and NEXT commands are used in conjunction to execute a command or group of commands a specified number of times. When the FOR command is first encountered, | The FOR and NEXT commands are used in conjunction to execute a command or group of commands a specified number of times. When the FOR command is first encountered, | ||
- | After each NEXT command, variable is incremented by 1 (the default), or by // | + | After each NEXT command, variable is incremented by 1 (the default), or by [[floatexpressions|step_expression]] |
==== Example ==== | ==== Example ==== |