top of page
- Script Code -
dofile(reaper.AZ_GetLuaInitPath())
testList = {10,20,30,40,50}
for i, value in pairs(testList) do
Msg(i)
Msg(value)
end
- Warm Up -
No preparation required
- Script Detail -
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
- API LINK -
Beginner
AZ_for_loop_2
Run a loop over the number of arrays
bottom of page