# \*if \*elseif and \*else

**URL:** <https://forum.choiceofgames.com/t/if-elseif-and-else/79959>\
**Category:** ChoiceScript Help\
**Created:** [May 27, 2020, 4:13am UTC](https://forum.choiceofgames.com/t/if-elseif-and-else/79959 "2020-05-27T04:13:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [May 27, 2020, 9:53am UTC](https://forum.choiceofgames.com/t/if-elseif-and-else/79959/6 "2020-05-27T09:53:31Z")

</div>

With `*elseif`, the code chooses the first correct condition from the entire set. With just `*if`, the code will check all the conditions in the set.

I’ll link one of my old threads about it

> [@\*if - \*if versus \*if - \*else/\*elseif](https://forum.choiceofgames.com/t/if-if-versus-if-else-elseif/23434/):
>
> Yo Everyone I was tinkering a 'lil bit with my story, then found something that intrigues me, then go to [the wiki](http://choicescriptdev.wikia.com) But I found no much regarding \*if paired to another \*if commands Well, you see… conditional statement uses \*if paired to \*elseif/else for different condition 
> 
> > **Like this**
> >
> > \*set money 100 \*label repeat \*choice #Buy a PC \*if (money \>= 99) \*set money -99 \*goto repeat \*else You don't have enough money \*goto repeat #Buy a flashd…

---

_[View the full topic](https://forum.choiceofgames.com/t/if-elseif-and-else/79959)._
