|
|||||||
If ShapeDefault AppearanceWhat it DoesAn If Statement checks a Boolean expression and then executes a true or false branch based on the result. Example
Finally, an If Statement checks if the age is greater than or equal to 18. Based on this, it either takes the false branch and displays "Sorry, not yet", or takes the true branch and displays "Go vote!".
|