I got a table of sweets;
local table = {Chocolate, Fudge, Caramel, Marshmallows}
I then use table.find to see whether a sweet is in it:
Table.find(table1, "Croissants")
Is it possible to set a variable after I did Table.find(table1, "Croissants") to the answer of the find (true or false)?

3 comments
What does the " ~= nil" part mean
~= stands for different than, different than nil, if it's different than non-existing
Not equal to is also a different meaning, ~ is not = equal, ~= is not equal to.