# \[AS2\] Strings and if statements

**URL:** <https://forum.kirupa.com/t/as2-strings-and-if-statements/281244>\
**Category:** flash\
**Created:** [February 6, 2009, 2:31pm UTC](https://forum.kirupa.com/t/as2-strings-and-if-statements/281244 "2009-02-06T14:31:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ConceptUK2009](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@ConceptUK2009](https://forum.kirupa.com/u/ConceptUK2009)\
**Post date:** [February 6, 2009, 2:31pm UTC](https://forum.kirupa.com/t/as2-strings-and-if-statements/281244/1 "2009-02-06T14:31:33Z")

</div>

I want to have the whole of the argument in an if statement represented by a variable string. Is this possible? I am yet to get the code to work:

```auto
var featureLimit:String = "featureType == \"logo_ci4\" || featureType == \"logo_ss2\" || featureType == \"logo_db\"";

//if statement contained in a for loop which gathers the featureType variables
if(featureLimit){
//Do something
}

```
