daily pastebin goal

the table is an array

hevohevo Mar 28th, 2016 (edited) 100 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand