Invalid expression


#1

Once again, havving “invalid expression” issue.
Invalid expression at char 39, expected CLOSE_PARENTHESIS, was: NAMED_OPERATOR [or]`

Yes, I probably shouldn’t use numbers as a variable but this has been working everywhere else so far
The line having the issue is the 2nd *if, the first *if is fine

*rand hunt 1 4
*if (hunt = "1")
   (words here)
*if (((hunt = "2") or (hunt = "3") or (hunt = "4"))
   (words here)

#2
*if ((hunt = "2") or (hunt = "3")) or (hunt = "4")

or

*if (((hunt = "2") or (hunt = "3")) or (hunt = "4"))

should work, I think. Be sure to check the brackets. A maximum of two units can be processed at a time.

What you’ve done is *if (((hunt = “2”) or (hunt = “3”) or (hunt = “4”)). If one were to remove the outer two brackets, you’ll have ((hunt = “2”) or (hunt = “3”) or (hunt = “4”), which means there’s a missing bracket somewhere.

Alternatively, I think you can just use an *else statement or *if hunt != “1”.