top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

3

Beginner

AZSTOKe_sample_if_2

Conditional test using elseif

RANK
SNS SHARE

function Msg(param)

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

end

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

function Msg(param)

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

end


  • Set Msg console output function


count = 35


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


if count < 5 then


  • If the variable is less than 5 (5 does not enter)


Msg("5")


  • Output [5] to 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")

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