top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

Beginner

3

Conditional test using elseif

RANK

SNS SHARE

AZSTOKe_sample_if_2

def Msg(parm):

    RPR_ShowConsoleMsg(str(parm)+"\n")


count = 35


if count < 5:

    Msg("5")

elif count < 40:

    Msg("40")

else:

    Msg("50")

def Msg(parm):

    RPR_ShowConsoleMsg(str(parm)+"\n")


  • A function that outputs the input value to the Reaper console


count = 35


  • Enter an integer of 35 in the count variable


if count < 5:

    Msg("5")


  • if statement Check if count is less than 5

  • If confirmed, output 5 using the Msg function

elif count < 40:

    Msg("40")


  • If elif does not match the above if statement and count is less than 40

  • If confirmed, output 40 using the Msg function

else:

    Msg("50")


  • else for everything that doesn't match in the above if/elif

  • Output 50 with Msg function

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

No preparation required


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

PYTHON

​ReaScript File Download 👇

​※実行するには専用APIが必要です

- Script Image -
bottom of page