SHARE
TWEET

the table is an array

hevohevo Mar 28th, 2016 (edited) 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local fruits = {"apple", "banana", "orange"}    -- 配列「fruits」の作成
  2. print("I like an", fruits[1])    -- 配列の1番目の要素を利用
  3. fruits[1] = "dorian"    -- 配列の1番目の要素を書き換え
  4. print("I hate an", fruits[1])    -- 配列の1番目の要素を利用
RAW Paste Data
Top