lua for command

Section for all discussions related to development using Indicore API/SDK.

Moderator: admin

lua for command

Postby markltbl » Sat Feb 15, 2014 4:18 pm

Hi all im editing a code in lua.

the code defines a local variable i then requests a for loop as below

for i=1,13,1 do
......
end

is this commanding the do loop to be executed 3 times, once when i=1, then i=13 and again when i=1?

please advise
markltbl
 
Posts: 23
Joined: Fri May 10, 2013 11:20 am

Re: lua for command

Postby Apprentice » Sun Feb 16, 2014 3:51 am

In this For loop i will assume all values ​​between 1 and 13
1,2,3, ... 12 and 13.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20070
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Discussions

Who is online

Users browsing this forum: No registered users and 3 guests