Programming - Concept
Conditional
Code that chooses what to do based on whether a condition is true or false
What's it for?
Lets software behave differently depending on the information or situation it encounters.
For example…
A checkout uses a conditional: if the basket is over £50 delivery is free; otherwise a £4 delivery charge is added