# "It is illegal to fall in to an \*else statement"

**URL:** <https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716>\
**Category:** ChoiceScript Help\
**Created:** [June 18, 2017, 2:43pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716 "2017-06-18T14:43:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![valentineheart](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/valentineheart/32/5303_2.png) [@valentineheart](https://forum.choiceofgames.com/u/valentineheart)\
**Post date:** [June 18, 2017, 2:43pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716/1 "2017-06-18T14:43:32Z")

</div>

After testing, I don’t believe it is possible, but I wanted to know if you can add multiple ifs to the same page.

I know that you can do \*if (egg =1) and (grape=1) you could put “you have an egg and grape.”

But would it be possible, in the same page, to do them like:

\*if egg=0  
You have no egg  
\*if egg = 1  
You have an egg

\*if grape = 0  
You have no grape  
\*if grape = 1  
You have a grape

Or something of the sorts? Mostly because I want to put a text under each possibility. And consedering it is multiple things, rather than 2, it would be simpler to write like that.

---

<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:** [June 18, 2017, 3:08pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716/2 "2017-06-18T15:08:57Z")

</div>

Your problem are quite similar to mine some time ago.  
Let me link you my [thread about that](https://forum.choiceofgames.com/t/if-if-versus-if-else-elseif/23434/2).

---

<div class="post-metadata">

**Author:** ![valentineheart](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/valentineheart/32/5303_2.png) [@valentineheart](https://forum.choiceofgames.com/u/valentineheart)\
**Post date:** [June 18, 2017, 4:57pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716/3 "2017-06-18T16:57:25Z")

</div>

You see, unless I am dumb ( I might be) I don’t believe it is the same problem.

I’m going to explain my reasoning. Basically, it’s part of my stat page. I wanted to be creative and give a small description of each stat in each stage. So, let’s say, with charisma zero, theres a certain description. With charisma one, a different one.

And thus i wrote.

> Charisma   
> \*if charisma = 0  
> (0) You are uncharismatic by nature, and lack the charm to impress people. They’ll likely want to communicate with a door instead.

> \*elseif charisma = 1  
> (1) You have started to create the attractiveness that allure people to you, but you have a long path.

> \*elseif charisma =2  
> (2) Although there is a lot to learn, you have enough charisma to allure most fools.

However, this doesn’t work, because

> choicescript\_stats line 11: It is illegal to fall in to an \*else statement; you must \*goto or \*finish before the end of the indented block.

And you see, I could put finish under each elseif, but charisma isn’t the ONLY stat supposed to be on the page. And if I do put finish, as I saw before, it only displays charisma and no other stat.

So I wanted to know if I could put, for example, two ifs like that under each other.

It would look kinda like this:

```choicescript
[b] Charisma [/b]
*if charisma = 0
  (0) You are uncharismatic by nature, and lack the charm to impress people. They'll likely want to communicate with a door instead.

*elseif charisma = 1
  (1) You have started to create the attractiveness that allure people to you, but you have a long path.

*elseif charisma =2
  (2) Although there is a lot to learn, you have enough charisma to allure most fools.

[b] Dance [/b]
*if dance = 0
  (0) You don't dance, period.
*elseif dance = 1
  (1) Even if you do lack the confidence to dance in public, you can do on the privacy of your room.

*elseif dance = 2
  (2) You're sure you won't step on your partner's toes. You focused solving that problem for a while now.

```

But as I said before, it won’t work. So my question is, if theres another way I can do it.

---

<div class="post-metadata">

**Author:** ![Eleckar](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eleckar/32/72266_2.png) [@Eleckar](https://forum.choiceofgames.com/u/Eleckar)\
**Post date:** [June 18, 2017, 5:57pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716/4 "2017-06-18T17:57:26Z")

</div>

After each if or elseif, you can have a \*goto linking to the next section.

```
[b] Charisma [/b]
*if charisma = 0
	(0) You are uncharismatic by nature, and lack the charm to impress people. They'll likely want to communicate with a door instead.
	*goto Dance
*elseif charisma = 1
	(1) You have started to create the attractiveness that allure people to you, but you have a long path.
	*goto Dance
*elseif charisma =2
	(2) Although there is a lot to learn, you have enough charisma to allure most fools.
	*goto Dance

*label Dance
...

```

---

<div class="post-metadata">

**Author:** ![valentineheart](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/valentineheart/32/5303_2.png) [@valentineheart](https://forum.choiceofgames.com/u/valentineheart)\
**Post date:** [June 18, 2017, 6:46pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716/5 "2017-06-18T18:46:27Z")

</div>

AAhh thank you, yes, that did seem to solve the problem. I thought it woundn’t, seeing as labels tend to change the page, but it didn’t! Thank you!!!

---

<div class="post-metadata">

**Author:** ![Eleckar](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eleckar/32/72266_2.png) [@Eleckar](https://forum.choiceofgames.com/u/Eleckar)\
**Post date:** [June 18, 2017, 9:43pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716/6 "2017-06-18T21:43:40Z")

</div>

Labels only change the page if you use \*page\_break.

Glad I could help!

---

<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:** [June 18, 2017, 11:55pm UTC](https://forum.choiceofgames.com/t/it-is-illegal-to-fall-in-to-an-else-statement/27716/7 "2017-06-18T23:55:02Z")

</div>

Ahh… right. My post isn’t exactly answered your problem 😜

Anyway, if what you’re wondering is whether you can use multiple `*if` on a single vignette/section (as you mentioned on the 1st post), then yes, you can 👌
