# Multiple or's

**URL:** <https://forum.kirupa.com/t/multiple-ors/271310>\
**Category:** flash\
**Created:** [September 21, 2008, 12:17pm UTC](https://forum.kirupa.com/t/multiple-ors/271310 "2008-09-21T12:17:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hommer](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Hommer](https://forum.kirupa.com/u/Hommer)\
**Post date:** [September 21, 2008, 12:17pm UTC](https://forum.kirupa.com/t/multiple-ors/271310/1 "2008-09-21T12:17:17Z")

</div>

Is there a way to make this shorter:

```auto
if (myVar == 10 || myVar == 30 || myVar == 31 || myVar == 33) {
	myFunction();
}

```

I thought about using an array, but can’t I do it easier? Something like this…?

```auto
if (myVar == (10, 30, 31, 33)) {
	myFunction();
}

```
