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の中身をコンソール表示

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.

準備の必要はありません

- 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