The if statement allows for conditional execution of code based on whether an expression evaluates to true or false. The else clause defines an alternative block of code to execute if the expression is false. The else if clause allows testing multiple expressions. The switch statement evaluates an expression and executes different code for different case results.