Conditions control how code is ran determined by specific parameters, below is an example of one where the first time it is ran the statement is true, and the second where it is false after updating the value of the variable.
I have less than $5000
I have $5000 or more currently
Conditions can contain many elseif statements, which allow for many variations based on what the value of a variable is as seen below wherein the same statement is printed 4 different times with different results based off of variable changes.
soda
My favorite drink is soda, I like the fizz and flavor
water
My favorite drink is water, I like to keep it simple
milk
My favorite drink is milk, I need the calcium
none
I dont really have a favorite drink
Switch/case are used to replace normally longer elseif statements, utilizing breaks in order to prevent running next case for if one is already utilized.
Today is christmas