Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I check if a variable matches any string or number in a table? [closed]

Asked by 4 years ago
local List = {"ItemA", "ItemB", "ItemC"}

local Item = "ItemB"

How would I check if the Item variable matched any of the items listed in the table?

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?