Math boolean.

Math boolean.

I have a 4 state variable (ON, OFF, Intermediate, Error).  Can i put this into math variable and use boolean logic ex.: X01 = NOT 1 would it work with int and error states? Or should I do all this in Logic?