Fixed conditional nesting level evaluation