Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

luau table.find

local t = {"a", "b", "c", "d", "e"}
print(table.find(t, "d")) -- 4
print(table.find(t, "z")) -- nil, because z is not in the table
print(table.find(t, "b", 3)) -- nil, because b appears before index 3
Source by create.roblox.com #
 
PREVIOUS NEXT
Tagged: #luau
ADD COMMENT
Topic
Name
6+9 =