Derived variable not displaying correctly

I have followed the tutorial on how to make a temp variable that reads another to create text. That part seems to be working. It reads it fine-but it’s displaying incorrectly. When I try to get it to display the way the tutorial wants me to, CS complains that it’s an empty variable-so I scrubbed the reference, things load up and…

Here’s the code for the shorter variable.

*temp gendertext
*if gender = 0 
    set gendertext "Non-binary/agender"
    goto chart
*elseif gender = 1
    set gendertext "Woman"
    goto chart
*elseif gender = 2
    set gendertext "Man"
    goto chart
*elseif gender = 3
    set gendertext "Dereth woman"
    set derethchk = true
    goto chart
*elseif gender = 4
    set gendertext "Dereth man"
    set derethchk = true
    goto chart

What am I doing wrong?

You need to put * before all the commands, including *set and *goto.

2 Likes

Doh! So simple a mistake. Thanks!

2 Likes

Question resolved!