Help with error: Line 4 of character: Non-existant variable “name”

I’ve reviewed the code you provided, and I see a few issues with the syntax and organization. I’ll correct the problems and explain the changes

*label character
What is your name?
*input_text name

Nice to meet you, ${name}. What is your gender?
*choice
    #Male
        *set gender "male"
        *set pronoun "he"
    #Female
        *set gender "female"
        *set pronoun "she"
    #Non-binary
        *set gender "non-binary"
        *set pronoun "they"

Would others see you as traditionally ${gender}?
*choice
    #Yes
        *if (gender = "male")
            *set sex "male"
        *if (gender = "female")
            *set sex "female"
    #No
        *if (gender = "male")
            *set sex "female"
        *if (gender = "female")
            *set sex "male"

*if (gender = "non-binary")
    *goto non_binary_scene
*else
    *goto gender_scene

*label non_binary_scene
#Your non-binary scene content goes here.
*finish

*label gender_scene
#Your gender-specific scene content goes here.
*finish

Here are the changes I made:

I Reorganized the *choice and *if blocks to make them clearer and avoid nested conditions.
Also Added *goto_scene statements for “non-binary” and other gender options.
And Created separate labels for “non_binary_scene” and “gender_scene” to handle specific content for each gender.
Lastly Removed the unnecessary double quotes in the *if conditions (e.g., “gender” = “male(yes)”).

With these changes, the code should work correctly and allow you to display different content based on the chosen gendder I don’t think you will face any problem now (hopefully)