next up previous
Next: The if variant Up: Unit 05 Previous: The if-else statement

Condition in an if-else statement

The condition in an if-else statement can be an arbitrary expression of type boolean, for example:


next up previous
Next: The if variant Up: Unit 05 Previous: The if-else statement