Lua Programming/How to Lua/hash
Length operator
The hash symbol can be used as a length operator returning the length of a string or table:
print (#"oranges") -- 7Last modified on 9 March 2011, at 00:03
The hash symbol can be used as a length operator returning the length of a string or table:
print (#"oranges") -- 7Last modified on 9 March 2011, at 00:03