# If statements

**URL:** <https://forum.kirupa.com/t/if-statements/2950>\
**Category:** Uncategorized\
**Created:** [March 2, 2002, 1:27am UTC](https://forum.kirupa.com/t/if-statements/2950 "2002-03-02T01:27:11Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [March 2, 2002, 1:27am UTC](https://forum.kirupa.com/t/if-statements/2950/1 "2002-03-02T01:27:11Z")

</div>

yeah hi, say i want something to happen, but I only want it to happen if more than two conditions are satisfied…is there a way to use multiple “if” statements?

---

<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:** [March 2, 2002, 1:45am UTC](https://forum.kirupa.com/t/if-statements/2950/2 "2002-03-02T01:45:00Z")

</div>

if(statement1 and statement2 and statement3){\rdoMe();\r}\r\ror\r\rif(statement1 && statement2 && statement3){\rdoMe();\r}\r\ror\r\rstatement1 && statement2 && statement3 ? doMe() : null;\r\rwhere the statements are you conditions and doMe is what you want to do.\r:) \rjeremy

---

<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:** [March 2, 2002, 2:12am UTC](https://forum.kirupa.com/t/if-statements/2950/3 "2002-03-02T02:12:39Z")

</div>

thanks a lot…i figured it could be done, but i wasn’t sure how to put in the statements. 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:** [March 2, 2002, 7:47am UTC](https://forum.kirupa.com/t/if-statements/2950/4 "2002-03-02T07:47:36Z")

</div>

This was my exact question long ago and no one helped me. Thank you so much, I appreciate it.
