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
TrueCourse of Raku / Advanced / Operators / Types of Raku operators / Exercises
Using the prefix ? operator, print the Boolean value of
0 and of 5, each on its own line.
The program prints:
False
True