Transition Rule Conditions Syntax

Working on V12, I am trying to get a series of conditions to work. For example:
-I have 3 check fields in a doctype; x, y and z.
-An action should be allowed if x=1 and (y=0 or z=0)

In plain words: x must be ticked, y and/or z must not be ticked.

I follow the example as far as I can, but I’ve tried every kind of syntax I can think of in every combination and I still get a syntax error. I have looked at as much documentation as I could find.

If somebody can show how to properly format this example it should be enough for me to do the rest.
If it is not possible, then I’ll have to work something else out.