Lua - Tables

Published 2014/03/03 by Admin in LUA
Tags: ,

Create an empty table -

a = {}

Create a table with the numbers 1,2,3 assigned -

b = {1,2,3}

Create a table with the strings "a","b","c" assigned -

c = {"a","b","c"}

 

We are unable to call print() on tables directly. See Printing tables.


Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

my coding

This is a collection of all the coding gems I have found and would like to share with the world!