OR PREVIOUS works like an OR statement in parenthesis.
a AND b OR PREVIOUS c
would look like
a && (b || c)