> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/b/boolean_values.md).

# Boolean values

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

```perl
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>.
