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