var/x = list("yay","nay")
mob
verb
check()
if("yay" in x)
world << "yay."
I was specifically hoping to be able to use the if function, and I don't see any mention in the reference of this not being possible.
Since the IN operator will just check to see if something is in a list, and then return either true or false.
As an option you could type if("yay" in global.x), but you're better off not naming your custom variables the same as built-in ones.