top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

10

Beginner

AZSTOKe_sample_tableRemove

Delete part of an array

RANK
SNS SHARE

function Msg(param)

   reaper.ShowConsoleMsg(tostring(param).."\n")

end


list = {"A","B","C","D","E","F"}

for i = 1,6 do

   Msg(list[i])

end


table.remove(list)

for i = 1,6 do

Msg(list[i])

end


table.remove(list,2)

for i = 1,6 do

Msg(list[i])

end

function Msg(param)

     reaper.ShowConsoleMsg(tostring(param).."\n")

end


  • Set Msg console output function


list = {"A","B","C","D","E","F"}

for i = 1,6 do

Msg(list[i])

end


  • Define an array.

  • Outputs the value of array index (1 to 6) to the console.


table.remove(list)


  • Delete the end of the array.


for i = 1,6 do

Msg(list[i])

end


  • Outputs the value of array index (1 to 6) to the console.


table.remove(list,2)


  • Delete the value at index (2) of the array.


for i = 1,6 do

Msg(list[i])

end

To use the API, you need to sign up for a plan.

Download the dedicated API

need to do it.

*SILVER is scheduled to be released in May.

No preparation required

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

LUA

​ReaScript File Download 👇

* A dedicated API is required to run this

- Script Image -
bottom of page