Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua string length

-- One can get the length of a string by using the # (length) operator.
-- The metamethod for this operator is __len.

local str = "Hello world!";
print(#str); -- 5	
 
PREVIOUS NEXT
Tagged: #lua #string #length
ADD COMMENT
Topic
Name
7+5 =