trying to add a nested if statement

trying to add a nested if statement