> For the complete documentation index, see [llms.txt](https://program-4.gitbook.io/french-programming-language/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://program-4.gitbook.io/french-programming-language/bases/le-type-bool.md).

# Le type bool

Le type bool est un type plutôt particulier, il a que deux valeurs possible : `vrai` ou `faux`.

Voici des exemples :&#x20;

```
definir fonc() {
    variable bool b -> faux;
    renvoyer b;
}

variable bool fonction a -> fonc;
envoyer a;

```

```
definir fonc() {
    envoyer "une fonction !";
    renvoyer vrai;
}

variable bool fonction a -> fonc;
envoyer a;
```

```
variable bool a -> faux;
envoyer a;
changer a -> vrai;
envoyer a;
```

Comme vous le constatez, cela revient au même que déclarez une variable classique, la seule différence est de ne pas donner d'autres valeurs !
