top of page
- Script Code -

dofile(reaper.AZ_GetLuaInitPath())


count = 35

if count < 5 then

Msg("5")

elseif count < 10 then

Msg("10")

elseif count < 15 then

Msg("15")

elseif count < 20 then

Msg("20")

elseif count < 25 then

Msg("25")

elseif count < 30 then

Msg("30")

elseif count < 35 then

Msg("35")

elseif count < 40 then

Msg("40")

end

!

- Warm Up -

No preparation required

- Script Detail -

dofile(reaper.AZ_GetLuaInitPath())


  • Loading the initial settings for the Lua version of RIGDOCKS


count = 35


  • Save the integer [35] in the variable (count).


if count < 5 then


  • If the variable is less than 5 (5 is not included)


Msg("5")


  • [5] is output to the console.


elseif count < 10 then

Msg("10")

elseif count < 15 then

Msg("15")

elseif count < 20 then

Msg("20")

elseif count < 25 then

Msg("25")

elseif count < 30 then

Msg("30")

elseif count < 35 then

Msg("35")

- API LINK -

Beginner

AZ_if_2

Conditional testing using elseif

01_BRONZE_ss_edited.png
01_SILVER_edited_edited.png
03_GOLD_edited_edited.png
bottom of page