WoW:API for: Difference between revisions

5 bytes removed ,  26 May 2006
Change category from "LUA Functions" to "Lua functions".
(Added "for, in" syntax)
(Change category from "LUA Functions" to "Lua functions".)
Line 1: Line 1:
{{UI-article}}
Native Lua statement:


A "for" loop.
for <variable> = <lowvalue>, <highvalue>,<step> do <statements>; end
 
'''for <variable> = <lowvalue>, <highvalue>,<step> do <statements>; end'''


Executes 'statements' for each value of 'variable' from 'lowvalue' to 'highvalue', at a step value of 'step' inclusive.  Other syntax options yet unknown.
Executes 'statements' for each value of 'variable' from 'lowvalue' to 'highvalue', at a step value of 'step' inclusive.  Other syntax options yet unknown.
Line 44: Line 42:


[[User:Tigerheart|Tigerheart]] 03:34, 3 Nov 2005 (EST) - Added info on <step>
[[User:Tigerheart|Tigerheart]] 03:34, 3 Nov 2005 (EST) - Added info on <step>
[[User:Tigerheart|Tigerheart]] 15:10, 7 Feb 2006 (EST) - Added "for, in" syntax


[[User:Tigerheart|Tigerheart]] 15:10, 7 Feb 2006 (EST) - Added "for, in" syntax
{{LUA}}
Anonymous user