Hi there! I am Studyfin, your coding buddy. Today, we will learn how computers make smart decisions using conditionals!
Have you ever said, 'If it is raining, then I will take an umbrella'? That is a conditional! In coding, we use a design process to create programs that make choices based on everyday problems.

A conditional is like a fork in the road. The computer checks a condition to see if it is true or false. If the condition is true, the computer runs a specific block of code.
We can also add an 'else' path. If the condition is false, the computer takes the 'else' path instead. This helps us solve everyday problems by planning for every possible option.
Let us design a simple program that helps us decide if we need to wear a jacket outside. The rule is: if the temperature is below 60 degrees, we wear a jacket. Otherwise, we do not need one.
- First, we identify the everyday problem: deciding what to wear based on the weather.
- Next, we define our variable. Let's call it 'temperature'.
- Then, we write our condition: Is 'temperature' less than 60?
- If this condition is TRUE, our program tells us to 'Wear a jacket!'.
- If this condition is FALSE (the 'else' part), our program tells us to 'Wear a t-shirt!'.
