A nested conditional statement refers to a conditional statement (if-else) that is inside another conditional statement. It allows for multiple levels of decision-making based on different conditions.
Related terms
Conditional Statement: A conditional statement is an if-else statement that allows for different actions to be taken based on whether a condition is true or false.
Boolean Expression: A boolean expression is an expression that evaluates to either true or false, which determines the execution path in a conditional statement.
Logical operators are used in boolean expressions to combine or manipulate conditions. Common logical operators include AND (&&), OR (||), and NOT (!).