Here are two examples of what I mean, if (someVariableOrExpression !== null |> !== undefined) { } if (someVariableOrExpression != 1 |> != 2) { } Now I know there are ways you can do these things, e.g. Just refer to someVariableOrExpression twice. Put 1 and 2 into a list and change if someVariableOrExpression isRead more