User Tools

Site Tools


en:for

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:for [2016/08/13 09:00]
admin
en:for [2017/08/15 06:07]
junior-root
Line 1: Line 1:
 ===== For / Next (Statement) ===== ===== For / Next (Statement) =====
 ==== Format ==== ==== Format ====
-**for** [[variables|variable]] =  [[floatexpressions|start_expression]] **to** [[floatexpressions|stop_expression]] [ **step** [[floatexpressions|step_expression]] ] \\+**for** [[variables|variable]] =  [[numericexpressions|start_expression]] **to** [[numericexpressions|stop_expression]] [ **step** [[numericexpressions|step_expression]] ] \\
 (tab)[[programsyntax|statement(s)]]\\ (tab)[[programsyntax|statement(s)]]\\
 **next** [[variables|variable]] **next** [[variables|variable]]
Line 7: Line 7:
 ==== Description ==== ==== Description ====
  
-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 variable is set to [[floatexpressions|start_expression]].\\ +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 variable is set to [[numericexpressions|start_expression]].\\ 
-After each NEXT command, variable is incremented by 1 (the default), or by [[floatexpressions|step_expression]] if the optional STEP is used, until the variable is greater than [[floatexpressions|stop_expression]] for positive step values, or less than [[floatexpressions|stop_expression]] for negative step values.+After each NEXT command, variable is incremented by 1 (the default), or by [[numericexpressions|step_expression]] if the optional STEP is used, until the variable is greater than [[numericexpressions|stop_expression]] for positive step values, or less than [[numericexpressions|stop_expression]] for negative step values.
  
 ==== Example ==== ==== Example ====
en/for.txt · Last modified: 2020/04/26 22:26 by admin