# Multiple conditions

**URL:** <https://forum.kirupa.com/t/multiple-conditions/256763>\
**Category:** Uncategorized\
**Created:** [April 7, 2008, 2:27am UTC](https://forum.kirupa.com/t/multiple-conditions/256763 "2008-04-07T02:27:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![22celin\_b](https://avatars.discourse-cdn.com/v4/letter/2/2acd7d/32.png) [@22celin\_b](https://forum.kirupa.com/u/22celin_b)\
**Post date:** [April 7, 2008, 2:27am UTC](https://forum.kirupa.com/t/multiple-conditions/256763/1 "2008-04-07T02:27:54Z")

</div>

Hi,

does anyone know how to do an if statement that will only work if all conditions are met?

for example, I have been using this code

if ((condition1) || (condition2) ){

} else {

}

in this case it only checks to see if one or the other is fulfilled. Is there a way to make it check that both condition1 and condition2 are fulfilled before it does it’s stuff?

Any help would be greatly appreciated.

Thanks
