Course of Raku / Essentials / Control flow 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.

Topics in this section

Practice

Complete the quizzes that cover the contents of this section.

Exercises

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

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

Course navigation

Quiz — Local variables   |   if blocks

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