Respect nested conditions