top of page

Beginner

2

ifを利用した条件テスト

RANK

AZ_if

def Msg(parm):

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


str1 = "AZSTOKE"


if str1 is not None:

    Msg("test1:"+str1)

    

if str1 == "AZSTOKE":

    Msg("test2:"+str1)


if str1 == "azstoke":

    Msg("test3:"+str1)

def Msg(parm):

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


  • 入力値をReaperのコンソールに出力する関数


str1 = "AZSTOKE"


  • str1変数に文字列”AZSTOKE”を入力


if str1 is not None:

    Msg("test1:"+str1)


  • if文 str1変数の中が入っているのかを確認

  • 入力が確認できたらMsg関数でコンソールにstr1を出力

    

if str1 == "AZSTOKE":

    Msg("test2:"+str1)


  • if文 str1変数と”AZSTOKE”という文字列が一致するのか確認

  • 同じならMsg関数でコンソールにstr1を出力


if str1 == "azstoke":

    Msg("test3:"+str1)


  • if文 str1変数と”azstoke”という文字列が一致するのか確認

  • 同じならMsg関数でコンソールにstr1を出力

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

準備の必要はありません


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

PYTHON

​ReaScript File Download 👇

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

- Script Download -
bottom of page