So I have a list in lua which looks something like this
hello
hello1
hello2
and I want to see if x
string is in my list.
I know how to do this in python but I have absolutely no idea how to do it in lua (somewhat compactly?)
In python:
list = ["hello1", "hello2", "hello3"]
if "hello1" in list:
print("this worked!")
else:
print("this didn't")