# And If

**URL:** <https://forum.kirupa.com/t/and-if/57053>\
**Category:** flash\
**Created:** [July 9, 2004, 9:07pm UTC](https://forum.kirupa.com/t/and-if/57053 "2004-07-09T21:07:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonjason](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jasonjason](https://forum.kirupa.com/u/jasonjason)\
**Post date:** [July 9, 2004, 9:07pm UTC](https://forum.kirupa.com/t/and-if/57053/1 "2004-07-09T21:07:55Z")

</div>

Is there any way to write AND IF statements in actionscript? i’m trying do something along the lines of having it work so that if an input field=“specific input” and a hit counter on a button is a certain value it goes on to the next frame… otherwise not, but i can’t get the AND IF portion to work at all.  
thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 9:11pm UTC](https://forum.kirupa.com/t/and-if/57053/2 "2004-07-09T21:11:00Z")

</div>

if (something && something else) {}

something like that? or else you could do a buncha if’s…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2004, 6:24am UTC](https://forum.kirupa.com/t/and-if/57053/3 "2004-07-10T06:24:48Z")

</div>

if((x==0) and (y==0)){  
z=10;  
}
