Operant use in Editor

Is it possible to use the operant "|" in the editor under a string varible. I am trying to check if a variable is of two values and if not then do something else...example

If variable == a | b then do Y if false do Z

Recommended Reading: