Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: doofus
Forum: Lua/XML Help 12-20-19, 02:04 AM
Replies: 10
Views: 5,194
Posted By doofus
I do not think this is right. t[1] is not an...

I do not think this is right. t[1] is not an integer index, there is NO "position 1" in the table, unless, and only if, I define k[n], where n is an integer, either by k[n]=value or by...
Forum: Lua/XML Help 12-19-19, 05:15 PM
Replies: 10
Views: 5,194
Posted By doofus
I am more confused now :) t[1] = 100 t[2] =...

I am more confused now :)

t[1] = 100
t[2] = 200
t["hello"] = "goodbye"

which is a data structure where:

k:1 v=100
k:2 v=200
Forum: Lua/XML Help 12-18-19, 03:19 AM
Replies: 10
Views: 5,194
Posted By doofus
Tables again...

Could someone please help me with this :

t = { };

t["a"] = "alpha"

This means key is string "a" and value is string "alpha". This will never change unless I assign another value to it...
Showing results 1 to 3 of 3