# Simple AS formulation query (f5)

**URL:** <https://forum.kirupa.com/t/simple-as-formulation-query-f5/30472>\
**Category:** flash\
**Created:** [September 9, 2003, 8:36am UTC](https://forum.kirupa.com/t/simple-as-formulation-query-f5/30472 "2003-09-09T08:36:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericinho](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ericinho](https://forum.kirupa.com/u/ericinho)\
**Post date:** [September 9, 2003, 8:36am UTC](https://forum.kirupa.com/t/simple-as-formulation-query-f5/30472/1 "2003-09-09T08:36:18Z")

</div>

to a frame I want to attach 2 conditions which an action has to fulfill before it can execute something.

so:

if (particularVar == Yes AND anotherniceVar == 25) {

thisfunkyMC.gotoandStop(49);

}

but obviously, this doesn’t work.

How do I have to correctly formulate it so I can put two conditions side an If statement, before something will be executed???
