Advertisement
hevohevo

if0

Oct 8th, 2019
951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. -- if0:
  2. --    if文の使い方を学ぶためのシンプルなプログラムです。
  3. local arg1 = ...  -- 引数のうち一番目を取り出し代入
  4. local hosuu = 6  -- 変数の初期値を6に定義
  5.  
  6. if arg1 then  -- もし変数に何か入っていたら
  7.   hosuu = arg1  -- 変数arg1の値をhosuuに代入
  8. end
  9.  
  10. print(hosuu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement