# If statements in array

**URL:** <https://discourse.processing.org/t/if-statements-in-array/34670>\
**Category:** Beginners\
**Created:** [January 16, 2022, 4:23pm UTC](https://discourse.processing.org/t/if-statements-in-array/34670 "2022-01-16T16:23:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jimma](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jimma](https://discourse.processing.org/u/Jimma)\
**Post date:** [February 8, 2022, 1:03pm UTC](https://discourse.processing.org/t/if-statements-in-array/34670/3 "2022-02-08T13:03:26Z")

</div>

Thank you so much for your help! And sorry for the late response. I did not receive a notification unfortunately. This solves my problem of having to create multiple integers for each new state the program executed.

Many thanks!

---

_[View the full topic](https://discourse.processing.org/t/if-statements-in-array/34670)._
