A nested if statement is an if statement placed inside another if statement . Nested if statements are often used when you must test a combination of conditions before deciding on the proper action.
Read moreWhat is the process of IF statement?
An if statement checks a boolean value and only executes a block of code if that value is true . To write an if statement, write the keyword if , then inside parentheses () insert a boolean value, and then in curly brackets {} write the code that should only execute when that value is true .
Read more