what is the difference between if and nested if?
'if' and 'else' statements are required when you need to make a decision based on the result of the condition you are evaluating within an 'if' statement. You can use nested 'if' statements when you want to check for a condition only when a previous dependent condition is true or false.