# If(something == this1 || this2 || this3){?

**URL:** https://forum.kirupa.com/t/if-something-this1-this2-this3/166509
**Category:** Uncategorized
**Created:** [October 20, 2005, 3:37pm UTC](https://forum.kirupa.com/t/if-something-this1-this2-this3/166509 "2005-10-20T15:37:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Loque](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@Loque](https://forum.kirupa.com/u/Loque)
#### Post date: [October 20, 2005, 3:37pm UTC](https://forum.kirupa.com/t/if-something-this1-this2-this3/166509/1 "2005-10-20T15:37:46Z")

</div>

Hey,

just wondering if someone could help me out, bit stuck using the “||” expression. I have used it before, and its worked, but i am now experiencing my second moment of it not working, here is how i am trying to use it at the moment;

```auto
var drasticMeasures:String = ThirdLevel.childNodes[t].attributes.name;
if (drasticMeasures == "Option1" || "Option2" || "Option3" ){

}

```

I know its not a problem with my vars, and when i try comparing “drasticMeasures” against indivudal strings it enters the if statement.

Any help is really appreciated!  
Loque
