![](https://static.wixstatic.com/media/a9283e_6aa743f5c6e840c988bd974971113bab~mv2.png/v1/fill/w_61,h_61,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/01_SILVER_trans.png)
3
![](https://static.wixstatic.com/media/a9283e_33e87214fd464133a45777e1ef381ea6~mv2.png/v1/fill/w_61,h_61,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/01_BRONZE_trans.png)
Beginner
AZSTOKe_sample_if_2
Conditional test using elseif
RANK
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