# Invalid boolean expression; this isn't a boolean: 0 (Resolved)

**URL:** <https://forum.choiceofgames.com/t/invalid-boolean-expression-this-isnt-a-boolean-0-resolved/9182>\
**Category:** ChoiceScript Help\
**Created:** [May 3, 2015, 8:18pm UTC](https://forum.choiceofgames.com/t/invalid-boolean-expression-this-isnt-a-boolean-0-resolved/9182 "2015-05-03T20:18:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lordirish](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirish/32/238051_2.png) [@Lordirish](https://forum.choiceofgames.com/u/Lordirish)\
**Post date:** [May 3, 2015, 8:18pm UTC](https://forum.choiceofgames.com/t/invalid-boolean-expression-this-isnt-a-boolean-0-resolved/9182/1 "2015-05-03T20:18:19Z")

</div>

So I am running into a bug that I am having a hard time solving.  
Under startup I have:  
\*create male false

one pge\_1 I have

```
11 *label lgbt
12 As you are open your files your cell phone rings. 
13 *if (male)
14 looking down you see it is your Ex
15 *choice 
16 #Star
17 *choice
```

When running quick test I am getting:  
Error: page\_1 line 13: Invalid boolean expression; this isn’t a boolean: 0

I went in and even set male true but get the same error. Any ideas? Thanks

---

<div class="post-metadata">

**Author:** ![WinterHawk](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@WinterHawk](https://forum.choiceofgames.com/u/WinterHawk)\
**Post date:** [May 3, 2015, 8:40pm UTC](https://forum.choiceofgames.com/t/invalid-boolean-expression-this-isnt-a-boolean-0-resolved/9182/2 "2015-05-03T20:40:29Z")

</div>

That’s probably some error on the Javascript part of the game. Either way its above my head but, you could try making `male` numeric as a workaround till whatever this is gets sorted. For example it would like this.

```
*create male 0

*label lgbt
As you are open your files your cell phone rings. 
*if (male = 1)
    looking down you see it is your Ex
    *choice 
    #Star
        *choice
*if (male = 0)
    Whatever the false/female text is.
```

---

<div class="post-metadata">

**Author:** ![Lordirish](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirish/32/238051_2.png) [@Lordirish](https://forum.choiceofgames.com/u/Lordirish)\
**Post date:** [May 3, 2015, 8:45pm UTC](https://forum.choiceofgames.com/t/invalid-boolean-expression-this-isnt-a-boolean-0-resolved/9182/3 "2015-05-03T20:45:04Z")

</div>

Thank you for the reply but true/false is what I need here. Seems to work fine when I try it in game but fails on quicktest. Odd and unless someone can pin point the problem will by pass for now.

---

<div class="post-metadata">

**Author:** ![Lordirish](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirish/32/238051_2.png) [@Lordirish](https://forum.choiceofgames.com/u/Lordirish)\
**Post date:** [May 3, 2015, 8:52pm UTC](https://forum.choiceofgames.com/t/invalid-boolean-expression-this-isnt-a-boolean-0-resolved/9182/4 "2015-05-03T20:52:55Z")

</div>

Seems I have male listed as a t/f and as a boolean on the startup page lol. Not sure why the game worked with both but now have to go back and change a big block of code to fix my blunder. Thanks all.

---

<div class="post-metadata">

**Author:** ![WinterHawk](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@WinterHawk](https://forum.choiceofgames.com/u/WinterHawk)\
**Post date:** [May 3, 2015, 8:53pm UTC](https://forum.choiceofgames.com/t/invalid-boolean-expression-this-isnt-a-boolean-0-resolved/9182/5 "2015-05-03T20:53:01Z")

</div>

Huh, quicktest is weird.
