A simple conditional statement is checks one condition. We use IF in VB, it is written as
- IF <Condition> then
- Do something
- ELSE
- Do something else
- END IF
The Condition has to resolve to true or false and uses comparison operators (Comparitors). Try these tasks
- Says hello to people named Bob
- Tells you if a number is above 10
- Tells you which of two numbers is the biggest
- Tells you if a number is odd or even