Added example with nested if