# If statements for 6 different possibilities

**URL:** <https://forum.kirupa.com/t/if-statements-for-6-different-possibilities/240064>\
**Category:** flash\
**Created:** [September 28, 2007, 6:26pm UTC](https://forum.kirupa.com/t/if-statements-for-6-different-possibilities/240064 "2007-09-28T18:26:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDD](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@DDD](https://forum.kirupa.com/u/DDD)\
**Post date:** [September 28, 2007, 6:26pm UTC](https://forum.kirupa.com/t/if-statements-for-6-different-possibilities/240064/1 "2007-09-28T18:26:14Z")

</div>

How do you do a “IF” statement for 6 different option. Basically I am sending a variable in the query string that flash is picking up and loading the according xml. Which is working to an extent. But now I need to add multiple possiblities as well the ability to show a error if the query string contains a value that is none of the above selections. I know its simply coded at thispoint but I need to expand it a bit. 😛

example that is “kinda” working

```auto
if (_root.movieVer == "version2"){
	pl.loadXML("2.xml");
} else {
	pl.loadXML("1.xml");
}

myText.text = _root.movieVer

```

Any help appreciated
