Difference between revisions of "Rawlen"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> '''Class:''' (global)<br/> === Description === Returns the length of the string or table, without invoking any metame...") |
(No difference)
|
Latest revision as of 16:58, 2 February 2025
Available since: Gideros 2011.6
Class: (global)
Description
Returns the length of the string or table, without invoking any metamethods.
(number) = rawlen(table)
Parameters
table: (table) table or string
Return values
Returns (number) table or string length
Examples
local t = {"a", "b", 1, 2, 3}
print(rawlen(t))
local str = "hello Gideros!"
print(rawlen(str))