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


#1

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


#2

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.

#3

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.


#4

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.


#5

Huh, quicktest is weird.