# What do i use for "and" in an "if statement"

**URL:** <https://forum.kirupa.com/t/what-do-i-use-for-and-in-an-if-statement/83644>\
**Category:** flash\
**Created:** [March 21, 2005, 12:09am UTC](https://forum.kirupa.com/t/what-do-i-use-for-and-in-an-if-statement/83644 "2005-03-21T00:09:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricktheking](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@patricktheking](https://forum.kirupa.com/u/patricktheking)\
**Post date:** [March 21, 2005, 12:09am UTC](https://forum.kirupa.com/t/what-do-i-use-for-and-in-an-if-statement/83644/1 "2005-03-21T00:09:44Z")

</div>

hey im used to vb if statements and having trouble adapting to these flash statements.  
now i know how to use if statements in AS but how do i do if statements with 2 conditions… this is what ihave concocted now.

on (release) {  
if (\_root.farmer.body.hitTest(\_root.plain6)) + (streetstuff =\>1){  
streetstuff = streetstuff -1;  
}  
}

ps. streetstuff is a variable/dynamic text box.
