I want to have a variable assigned based on the value of another variable. Because the second variable can have lot of different values, instead of having a lot of if statements, if I can, I'd rather use something that checks equivalence within anywhere in an array and picks the element within that array that matches to assign to the first variable.
So "if x equals anything in array [a, b, c, d]
y = the element x is equal to"