Categories October Surprise 2024 Decision Making in C (if , if..else, Nested if, if-else-if ) Post author By Post date September 15, 2026 The if-else statement is used to execute one block of code if a condition is true and another block if it is false. The if block executes when the condition is true.