September 2017
Beginner
402 pages
9h 52m
English
These operators are operators for the Boolean logic that perform the operations AND, OR, and exclusive OR.
With Boolean operands, the result is either True or False, with the only exception for the True ^^ True expression, which returns Nil.
The following set of examples demonstrates all possible combinations for the Boolean operands:
say False && False; # Falsesay True && True; # Truesay True && False; # Falsesay False && True; # Falsesay False || False; # Falsesay True || True; # Truesay True || False; # Truesay False || True; # Truesay False ^^ False; # Falsesay True ^^ True; # Nilsay True ^^ False; # Truesay False ^^ True; # False
With operands of other types, they either return a Boolean value or one of the ...
Read now
Unlock full access