# Couldn't extract token?

**URL:** <https://forum.choiceofgames.com/t/couldnt-extract-token/38752>\
**Category:** ChoiceScript Help\
**Created:** [May 11, 2018, 11:42am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752 "2018-05-11T11:42:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 11, 2018, 11:42am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/1 "2018-05-11T11:42:26Z")

</div>

I have an error when choice script is just saying “Nah, you ain’t gon’ do dat m8”  
Code:

```
*if gender="male" wife, you thought she just left for work early since she does that often.

```

Error: startup line 173: Invalid expression at char 18, expected no more tokens, found: VAR [wife]

---

<div class="post-metadata">

**Author:** ![EclecticEccentric](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eclecticeccentric/32/112816_2.png) [@EclecticEccentric](https://forum.choiceofgames.com/u/EclecticEccentric)\
**Post date:** [May 11, 2018, 11:45am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/2 "2018-05-11T11:45:00Z")

</div>

The text that the `*if` statement is supposed to display should be on a different line and also indented.

---

<div class="post-metadata">

**Author:** ![Samuel\_H\_Young](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/samuel_h_young/32/268356_2.png) [@Samuel\_H\_Young](https://forum.choiceofgames.com/u/Samuel_H_Young)\
**Post date:** [May 11, 2018, 11:45am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/3 "2018-05-11T11:45:26Z")

</div>

In general, “couldn’t extract token” means you’re using a character that isn’t compatible with choicescript code.

---

<div class="post-metadata">

**Author:** ![Franzinyte](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/franzinyte/32/170556_2.png) [@Franzinyte](https://forum.choiceofgames.com/u/Franzinyte)\
**Post date:** [May 11, 2018, 11:46am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/4 "2018-05-11T11:46:42Z")

</div>

Do this:

```
*if gender="male" 
	wife, you thought she just left for work early since she does that often.

```

You need to go to the next line and add another indent after every \*if, \*elseif and \*else.

---

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 11, 2018, 11:47am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/5 "2018-05-11T11:47:49Z")

</div>

You are all awesome! :3

---

<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 11, 2018, 11:47am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/6 "2018-05-11T11:47:53Z")

</div>

It seems like you’re still struggling with the basics of CScript.

> **[ChoiceScript Wiki](https://choicescriptdev.fandom.com/wiki/ChoiceScript_Wiki)**
>
> Welcome to the ChoiceScript Wiki The wiki about ChoiceScript, a simple scripting language developed by Adam Strong-Morse and Dan Fabulich of Choice of Games LLC for writing text-based, multiple-choice games. This Wiki is a ChoiceScript Game...

---

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 11, 2018, 11:49am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/7 "2018-05-11T11:49:35Z")

</div>

I already have that wiki up, it’s just that people are much better at explaining things to me.

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [May 11, 2018, 11:56am UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/8 "2018-05-11T11:56:16Z")

</div>

Maybe you should make a single thread until you’re confident you know all there is in terms of coding for your project.

---

<div class="post-metadata">

**Author:** ![lunawisp](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lunawisp/32/85423_2.png) [@lunawisp](https://forum.choiceofgames.com/u/lunawisp)\
**Post date:** [May 11, 2018, 1:12pm UTC](https://forum.choiceofgames.com/t/couldnt-extract-token/38752/9 "2018-05-11T13:12:03Z")

</div>

> [@YeThatFella](#):
>
> expected no more tokens

That indicates that you’re giving the compiler more tokens (bits of information) than it was expecting. That’s usually due to running lines together, like you did, but can also indicate misplaced parenthesis so that’s a good one to look out for as well.
