Conditional Statements

If / Else Example

You are an adult.

Switch Case Example

Start of the week.

Conditional statements allow programs to make decisions based on conditions. If/else statements execute different code depending on whether a condition is true or false. Switch statements compare a value against multiple cases, making code cleaner and easier to manage.