local myvar = 3; // a local variable
a = b = c = 3
put("a = "+a+", b = "+b+" and c = "+c+"\\n")
// gives: a = 3, b = 3 and c = 3
var1 = 1
puts(type(var1)) // prints integer
var2 = "hello!"
puts(type(var2)) // prints string
var3 = 3.14
puts(type(var3)) // prints float
var4 = []
puts(type(var4)) // prints table
/*
the difference between put and puts is that
puts adds automatically a line jump is the end of the string,
which means puts(a) = put(a+"\\n")
*/
// Tables:
iTable = []
iTable[0] = 3
iTable[1] = 3.14
iTable[2] = "3.14"
meTable = [1, "hi", 14.3, [1, 2, 3]]
put(meTable[3][1]) // prints ^
// Tables as records:
Player = []
Player["name"] = "XerXeS"
put(Player.name) // prints XerXeS
/*
table["id"] is the same as table.id
however, the id in the second form, shall be an identifier, not a number.
*/