Is there another way to write something like this:
if (a == x || a == y || a == z)
One way that I found is doing it like this:
if(a==x?true:a==y?true:a==z?true:false)