Doing "complex" alert

Hello i’m trying to create an alert with lots of “and” and “or” in a row, but I can’t manage to make a sequence that satisfies what I want to do.

This condition would be.
X > 10
AND Y < 1
AND ( Z < 1 OR A < 1 OR B < 1)

But I can’t manage to simulate the () in the alert condition. Should I make a sequence like this?

X > 10
AND Y < 1
AND Z < 1
OR
X > 10
AND Y < 1
AND A < 1
OR
X > 10
AND Y < 1
AND B < 1