list.lenght troubles
After populating an array whit elements lenght always returns 0?
init = function()
tile = class
sprite = "none"
walkable = true
room = 0
end
mapa = []
for x = 0 to 14
mapa.push([])
for y = 0 to 14
mapa[x].push(new tile())
end
end
print(mapa)
print(mapa.lenght) //returns 0???
end
Given this code the output is
microScript 2.0 - beta
[[list],[list],[list],[list],[list],[list],[list],[list],[list],[list],[list],[list],[list],[list],[list]]
0
I must be missing something... After furder testing
init = function()
testlist = ["tree","book","worm"]
print(testlist.lenght)
end
Also returns 0, is this thing just broken?