You can string multiple conditions together in one, such that:
If (thing = 1 OrElse thing = 2 OrElse thing = 3 OrElse thing = 4 OrElse thing = 5)
End IF
However, you could add these values to a whitelist, and do an Any
or Contains
check. You could of course to a lower than and greater than comparison to constrain, but I didn’t risk that without enough detail.
solved If Condition for multiple values [closed]