Lua Programming/How to Lua/hash

Length operatorEdit

The hash symbol can be used as a length operator returning the length of a string or table:

print (#"oranges")    -- 7
Last modified on 9 March 2011, at 00:03