View Single Post
02-23-13, 08:33 AM   #3
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
Well, perhaps I should delve a bit deeper into what I am striving for. Let us say that I have an input that may have ANY value. I want to check this against a table of any possible value that may be considered valid. Let me set up a few examples:

local input = "Haleth"

local table = {
"Phanx",
"Clamsoda",
"Seerah",
"Dridzt",
"Haleth"
}

What I would like to do is construct an IF statement that if the input is ever ANY value that is in said table, that we may proceed with the code. And this process will remain true for any amount of values I add to, or remove from the table, and is independent of the input value. The input may become "apple", or "seven", in which case it wouldn't match, unless "apple" or "seven" was added to the table. Additionally, if I removed "Haleth" from the table the input would no longer be true.

I am very sorry if I missed your point, or not illustrating mine correctly.
  Reply With Quote