# Boolean confusion

**URL:** <https://discourse.processing.org/t/boolean-confusion/26348>\
**Category:** Beginners\
**Created:** [December 17, 2020, 10:36pm UTC](https://discourse.processing.org/t/boolean-confusion/26348 "2020-12-17T22:36:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SadCSstudent](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@SadCSstudent](https://discourse.processing.org/u/SadCSstudent)\
**Post date:** [December 17, 2020, 10:36pm UTC](https://discourse.processing.org/t/boolean-confusion/26348/1 "2020-12-17T22:36:54Z")

</div>

nothing to see here anymore, question answered

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [December 17, 2020, 11:29pm UTC](https://discourse.processing.org/t/boolean-confusion/26348/2 "2020-12-17T23:29:22Z")

</div>

> [@SadCSstudent](#):
>
> Is !found equal to `true` or `false`?

You can check that out yourself: 😉

```auto
boolean found = false;
println(!found); // true
exit();

```

> **[! (logical NOT) / Reference](https://processing.org/reference/logicalNOT.html)**
>
> Inverts the Boolean value of an expression. Returns true if the expression is false and returns false if the expression is true. If the expression (a\>b) evaluates to…

---

<div class="post-metadata">

**Author:** ![SadCSstudent](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@SadCSstudent](https://discourse.processing.org/u/SadCSstudent)\
**Post date:** [December 17, 2020, 11:38pm UTC](https://discourse.processing.org/t/boolean-confusion/26348/3 "2020-12-17T23:38:16Z")

</div>

idk why i didnt think of that, thank you!
