Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

roblox how to find something in table

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: #roblox #find #table
ADD COMMENT
Topic
Name
1+5 =