 You can put if statements inside of if statements, and that's called a nested if. Here's a program that asks for a price and quantity, and calculates a subtotal, the tax, and the total, and prints them out. Let's run it. If I have a unit price of $4.50 and I order 7 items, there's my subtotal, tax, and total. I'd like to be sure that both the price and quantity are greater than zero. Let's add an if-else for the price. After I get the price, I want to ask if the price is greater than zero. If that's the case, it's okay to do all these things. I could indent all the statements by hand, one by one, but my integrated development environment gives me a helping hand. If I highlight all the lines and press Tab, it indents them all for me. And I can close the if block by inserting a closing brace. I'll need an else block, in case the price is not greater than zero, to print out the message that the price must be greater than zero. And I'll put the closing brace on that block as well. Let's recompile. And when I run again, if I enter a price of $-4.95, the program will immediately tell me that the price must be greater than zero. That handles negative prices. But what happens if I give negative rephrase? But what happens if I give negative quantities? If I give a valid unit price, a positive number, and a negative quantity, it still goes through with that bad calculation. So I need another if else to handle that. After I get the quantity, I have to ask if the quantity is greater than zero. If it is, then it's okay to do all of my calculations. And again, I'll press Tab to do the indent and close my block. Otherwise, if the quantity is not greater than zero, I'll print the message that says the quantity must be greater than zero. And close that block. I have an if in lines 19 through 28 inside of another if from lines 15 through 31. That's a nested if. Compile and run the program with a valid unit price and a valid quantity, and everything works nicely. With an invalid price, I get an error right away. And with a valid price and an invalid quantity, I get the message telling me that my error is incorrect. Rephrase. I get an error message telling me that my quantity must be greater than zero. The program is now working the way I want it to, because I have a nested condition, an if within an if. Is it possible to have an if statement inside the else portion? Yes, it is.