# \*SOLVED\* Problem with \*choice statement

**URL:** <https://forum.choiceofgames.com/t/solved-problem-with-choice-statement/13473>\
**Category:** Game Development\
**Created:** [December 5, 2015, 9:49pm UTC](https://forum.choiceofgames.com/t/solved-problem-with-choice-statement/13473 "2015-12-05T21:49:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Archivist](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@The\_Archivist](https://forum.choiceofgames.com/u/The_Archivist)\
**Post date:** [December 5, 2015, 9:49pm UTC](https://forum.choiceofgames.com/t/solved-problem-with-choice-statement/13473/1 "2015-12-05T21:49:16Z")

</div>

First Time ChoiceScripter. In my game, I have a choice with two options in it. One choice works perfectly fine, while the other gives me an error saying that i am falling out of the \*choice statement without a \*goto or \*finish. But I have a \*goto statement at the end of the option.

(Since i cant seem to tab out the preformatted work I will use TAB to represent tab strokes, and ENT to represent Enter Strokes)

`#(Take the Purple Pill) ENT-TAB Hm, so you decided to take the Purple pill. Not what I would have picked. Carry on. ENT-TAB *goto BallMove`

I dont know why it isnt working. It even says it is good when I run the quicktest [Snippit of the aforementioned code](https://www.dropbox.com/s/vxewopqzdcjf1m2/Snippit.txt?dl=0)

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [December 5, 2015, 10:05pm UTC](https://forum.choiceofgames.com/t/solved-problem-with-choice-statement/13473/2 "2015-12-05T22:05:37Z")

</div>

I can’t see a choice option in there (Although the formatting looks weird on my computer so maybe there’s more problems there as well). What’s the exact error you’re getting? (It’ll often give you a line number)  
ie  
\*choice  
(tab) # take pill  
(tab x 2) Hm…

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [December 5, 2015, 10:10pm UTC](https://forum.choiceofgames.com/t/solved-problem-with-choice-statement/13473/3 "2015-12-05T22:10:11Z")

</div>

Actually the above coding seems wrong as well. You’re mixing simple choices with else if statements without there actually seeming to be a choice command in there. See this page for using those commands in choices [https://www.choiceofgames.com/make-your-own-games/choicescript-intro/](https://www.choiceofgames.com/make-your-own-games/choicescript-intro/)

---

<div class="post-metadata">

**Author:** ![The\_Archivist](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@The\_Archivist](https://forum.choiceofgames.com/u/The_Archivist)\
**Post date:** [December 5, 2015, 11:15pm UTC](https://forum.choiceofgames.com/t/solved-problem-with-choice-statement/13473/4 "2015-12-05T23:15:25Z")

</div>

Sorry, I was a bit unclear about what I said beforehand. Let me PM you the full page rather than a snippit so that you could help a little further.
