top of page
- Script Code -
dofile(reaper.AZ_GetLuaInitPath())
t = {"A","C"}
table.insert(t,2,"B")
for i = 1,3 do
Msg(t[i])
end
table.insert(t,"D")
for i = 1,4 do
Msg(t[i])
end
- Warm Up -
No preparation required
- Script Detail -
dofile(reaper.AZ_GetLuaInitPath())
Loading the initial settings for the Lua version of RIGDOCKS
t = {"A","C"}
Define an array.
table.insert(t,2,"B")
Insert "B" into the second position of the array.
for i = 1,3 do
Msg(t[i])
end
Output the values of array indexes (1 to 3) to the console.
table.insert(t,"D")
Insert a "D" at the end of the array.
for i = 1,4 do
Msg(t[i])
end
Output the values of array indexes (1 to 4) to the console.
- API LINK -
Beginner
AZ_tableInsert
Add a new value between the arrays
bottom of page