turing machine logic instead of something

Lets assume I have this turing machine:

And I have a $$\Sigma = \{0,1,2,3,4,5\}$$.

Now my question is can I simplify the transaction from $$A$$ to $$B$$ ?

Is there any way so I can write - when the read value is not $$2$$, write $$x$$ and move to right?

You could write $$\neq 2 \to x,R$$, but you might have to explain somewhere that by that you mean that the transition is taken as long as the symbol read is not $$2$$.