Course of Raku / Advanced / Operators / Types of Raku operators / Exercises

Boolean of a value

Problem

Using the prefix ? operator, print the Boolean value of 0 and of 5, each on its own line.

Example

The program prints:

False
True

Solution

See the solution

Course navigation

Solution: Count up   |   Solution: Boolean of a value