User Tools

Site Tools


en:fornext

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:fornext [2016/08/12 12:00]
admin
en:fornext [2016/08/12 20:31] (current)
admin
Line 1: Line 1:
 ===== For / Next ===== ===== For / Next =====
 ==== Format ==== ==== Format ====
-**for** ​//variable// =  //​expression1//​ **to** //​expression2//​ [ **step** //​expression3//​ ] \\+**for** ​[[variables|variable]] =  //​expression1//​ **to** //​expression2//​ [ **step** //​expression3//​ ] \\
 [[programsyntax|statement(s)]]\\ [[programsyntax|statement(s)]]\\
-**next** ​//variable//+**next** ​[[variables|variable]]
  
 ==== 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 //​expresssion1//​.\\ +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 [[variables|variable]] is set to //​expresssion1//​.\\ 
-After each NEXT command, ​//variable// is incremented by 1 (the default), or by //​expression3//​ if the optional STEP is used, until //variable// is greater than or equal to //​expression2//​ for positive step values, or less than or equal to //​expression2//​ for negative step values.+After each NEXT command, ​[[variables|variable]] is incremented by 1 (the default), or by //​expression3//​ if the optional STEP is used, until [[variables|variable]] is greater than or equal to //​expression2//​ for positive step values, or less than or equal to //​expression2//​ for negative step values.
  
 ==== See Also ==== ==== See Also ====
 [[dountil|Do / Until]], [[whileendwhile|While / End While]] [[dountil|Do / Until]], [[whileendwhile|While / End While]]
  
en/fornext.txt · Last modified: 2016/08/12 20:31 by admin