Course of Raku / Essentials

Conditional checks

As soon as you want the program to behave differently in response to different circumstances, you can start using if and its family.

All these constructs need some condition, which is a Boolean value or a Boolean expression, or any other expression that can be converted to a Boolean value.

Exercises

This section contains 4 exercises. Examine all the topics of this section before going to the coding practice.

  1. Plural ending
  2. FizzBuzz
  3. How many numbers are equal?
  4. Leap year

Course navigation

Code blocks / Local variables   |   if blocks

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська