top of page
- API -
dofile(reaper.AZ_GetLuaInitPath())
testList = {10,20,30,40,50}
for i, value in pairs(testList) do
Msg(i)
Msg(value)
end
- API Detail-
No preparation required
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
Loading the initial settings for the Lua version of RIGDOCKS
testList = {10,20,30,40,50}
By enclosing it in {}, 10.20.30.40.50 becomes an array. In other words, five integers are stored in the array (testlist).
for i, value in pairs(testList) do
Use ForLoop to loop through the arrays stored in testlist
Msg(i)
Print the account ID to the console
Msg(value)
Output the testList associated with the count to the console
end
ForLoop processing completed
- SCRIPT -
Beginner
AZ_for_loop_2
Run a loop over the number of arrays
bottom of page