# Statement inside "IF" like a variable...?

**URL:** <https://forum.kirupa.com/t/statement-inside-if-like-a-variable/273661>\
**Category:** flash\
**Created:** [October 18, 2008, 3:05pm UTC](https://forum.kirupa.com/t/statement-inside-if-like-a-variable/273661 "2008-10-18T15:05:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zazza](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@Zazza](https://forum.kirupa.com/u/Zazza)\
**Post date:** [October 18, 2008, 3:05pm UTC](https://forum.kirupa.com/t/statement-inside-if-like-a-variable/273661/1 "2008-10-18T15:05:58Z")

</div>

Greetings,  
I don’t know if this question is somewhat crazy but I’d like to make the statement inside an IF conditional, **working like a variable**.

Example:

```auto
 
var a = 2;
var b = 4;
 
var Expression = "a<0 && b >5"
 
if Expression true then...

```

Just like a query system for a database.  
How could achieve this? Do I need to build a “special” interpreter for this?
