A choice stage is very similar to a decision. Previously, we saw that a decision asks a single question, for example: Is the weather hot? It always results in a yes-no type of answer. A choice is made up of multiple decisions which gives us the ability to program for more than one decision point. We can use it to create a more complicated scenario, such as the following:
- If the temperature is ≥ 30 °C, we will eat ice cream
- If the temperature is < 30 °C and ≥ 25 °C, we will drink cooled water
- Otherwise, if the temperature is < 25°C, we will drink hot chocolate
In a flowchart diagram, the preceding logic will appear as shown in the following diagram. Note that it is made up of many decision diamonds: