top of page

2

Beginner

AZ_if

ifを利用した条件テスト

RANK

dofile(reaper.AZ_GetLuaInitPath())


str = "AZSTOKE"


if str ~= nil then

   Msg("test1:"..str)

end


if str == "AZSTOKE" then

   Msg("test2:"..str)

end


if str == "azstoke" then

   Msg("test3:"..str)

end

dofile(reaper.AZ_GetLuaInitPath())


str = "AZSTOKE"


  • str変数に"AZSTOKE"文字列を追加


if str ~= nil then

   Msg("test1:"..str)

end


  • if文 str変数の中身の有無を確認

  • Trueの場合、Msg関数でstrの中身をコンソール表示


if str == "AZSTOKE" then

   Msg("test2:"..str)

end


  • if文 str変数と”AZSTOKE”が一致するか確認

  • Trueの場合、Msg関数でstrの中身をコンソール表示


if str == "azstoke" then

   Msg("test3:"..str)

end


  • if文 str変数と”azstoke”が一致するか確認

  • Trueの場合、Msg関数でstrの中身をコンソール表示

APIの利用にはプランに加入し

専用APIをダウンロード

する必要があります。

​※SILVERは5月中の公開を予定しております

準備の必要はありません

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

LUA

​ReaScript File Download 👇

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

- Script Download -
bottom of page