# Maybe one bug in the p5

**URL:** https://discourse.processing.org/t/maybe-one-bug-in-the-p5/29400
**Category:** Beginners
**Tags:** homework
**Created:** [April 16, 2021, 6:50am UTC](https://discourse.processing.org/t/maybe-one-bug-in-the-p5/29400 "2021-04-16T06:50:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)
#### Post date: [April 16, 2021, 7:13am UTC](https://discourse.processing.org/t/maybe-one-bug-in-the-p5/29400/2 "2021-04-16T07:13:45Z")

</div>

> [@turtle](#):
>
> `x-diameter/2 < mouseX < x+diameter/2`

Unfortunately you can’t chain like that ☹ it makes sense for people, but computers need different notation:

```javascript
x-diameter/2 < mouseX && mouseX < x+diameter/2

```

Or

```javascript
abs(x - mouseX) < diameter/2

```

---

_[View the full topic](https://discourse.processing.org/t/maybe-one-bug-in-the-p5/29400)._
