Accounting for nested conditions ($or, $and, ...)