for: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(_x is a magic variable... _i seams better)
Line 2: Line 2:
*[[for forspec]]
*[[for forspec]]
'''Example'''  
'''Example'''  
  for [{_x=1},{_x<=10},{_x=_x+1}] do
  for [{_i=1},{_i<=10},{_i=_i+1}] do {};
*[[for var]]   
*[[for var]]   
'''Example'''
'''Example'''
  for "_x" from 1 to 10 do
  for "_i" from 1 to 10 do {};





Revision as of 15:00, 7 August 2015

for can refer to these scripting commands:

Example

for [{_i=1},{_i<=10},{_i=_i+1}] do {};

Example

for "_i" from 1 to 10 do {};


See Also

Control Structures

Template:Disambig