Answers for "roblox how to find something in table"

Lua
8

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
Posted by: Guest on May-07-2022

Code answers related to "roblox how to find something in table"

Browse Popular Code Answers by Language