# Couldn't extract another token

**URL:** <https://forum.choiceofgames.com/t/couldnt-extract-another-token/748>\
**Category:** ChoiceScript Help\
**Created:** [September 11, 2012, 8:35pm UTC](https://forum.choiceofgames.com/t/couldnt-extract-another-token/748 "2012-09-11T20:35:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trywm](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@Trywm](https://forum.choiceofgames.com/u/Trywm)\
**Post date:** [September 11, 2012, 8:35pm UTC](https://forum.choiceofgames.com/t/couldnt-extract-another-token/748/1 "2012-09-11T20:35:24Z")

</div>

This is line 97 \*if firstquestionsreturn \> 0 #No more questions  
I’m going testing the game and get this:  
line 97: Invalid expression, couldn’t extract another token: #No more questions  
What does the “couldn’t extract another token” mean?

I’m trying to create a conversation. Before you can skip it though, you need to ask at least one question. They will \*set firstquestionsreturn +1.

Is it indentation? Because I’ve checked it at least a dozen times and if I have to fix it again I think I’ll go crazy. Please forgive a noob.

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [September 11, 2012, 11:44pm UTC](https://forum.choiceofgames.com/t/couldnt-extract-another-token/748/2 "2012-09-11T23:44:39Z")

</div>

Can you post more of the lines surrounding the \*choice (use \< pre\> above and \< /pre\> below the code to keep it’s indentation). I know I’ve seen it before, but I can’t remember what the “couldn’t extract another token” error was. Was the variable declared in mygame.js?

---

<div class="post-metadata">

**Author:** ![HoraceTorys](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/horacetorys/32/22825_2.png) [@HoraceTorys](https://forum.choiceofgames.com/u/HoraceTorys)\
**Post date:** [September 12, 2012, 1:11am UTC](https://forum.choiceofgames.com/t/couldnt-extract-another-token/748/3 "2012-09-12T01:11:34Z")

</div>

Try parentheses: \*if (firstquestionsreturn \> 0) #No more questions

Or put “#No more questions” on its own line, indented

---

<div class="post-metadata">

**Author:** ![Trywm](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@Trywm](https://forum.choiceofgames.com/u/Trywm)\
**Post date:** [September 12, 2012, 5:28pm UTC](https://forum.choiceofgames.com/t/couldnt-extract-another-token/748/4 "2012-09-12T17:28:50Z")

</div>

I tried having it on its own line, that didn’t help. But the brackets did. Not sure why. But thanks. I am slowly learning 🙂

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [September 12, 2012, 5:32pm UTC](https://forum.choiceofgames.com/t/couldnt-extract-another-token/748/5 "2012-09-12T17:32:24Z")

</div>

The brackets define the “if condition” if you didn’t have them it might consider the ‘#No more questions’ as part of the condition, which would result in an error 🙂  
Glad to see it’s sorted though!
