I've done multiple string comparison in my UI code in several places. You just need to do the check and the result in a different line (at least far as I remember from testing).
boolCheck=(var1 || var 2 || var3 || var 4)
boolResult=(boolCheck ? true : false)
Like I said above, I save my code through UI builder, so it encodes the characters for me, but it definitely works.
If something is crashing me, I take it line by line until I find the problem. I'll even output variables to a chat channel if I need to go as far as debugging it line by line with feedback.