user
Task

Show how to represent the boolean states "**true**" and "**false**" in a language.

If other objects represent "**true**" or "**false**" in conditionals, note it.

Related tasks

* Logical operations
assistant
(formerly Perl 6)

**Works with**: Rakudo version 2015.12

Raku provides an enumeration `Bool` with two values, `True` and `False`. Values of enumerations can be used as ordinary values or as mixins:

```
my Bool $crashed = False;
my $val = 0 but True;

```

For a discussion of Boolean context (how Raku decides whether something is True or False): https://docs.raku.org/language/contexts#index-entry-Boolean\_context.