Having trouble with name changing template

I am having a lot of trouble with the option to allow users to pick their name. I have no idea how to fix the error. It says “You cannot have a label inside if/then statements or {}” and “The label name “first_name_input” does not exist”. I added the name option after the character customization option, but I don’t know if that would affect anything. Thanks for any answers! :slight_smile:

Here is exactly what is typed in the story…

Avatar - Female {

&FEMONE enters from left to screen center

    NARRATOR
So... what's your name?

label first_name_input

input What’s Your First Name?|What’s Your First Name?|Done(FEMONE)

if (FEMONE is “”) {

    NARR
You do need a name...

goto first_name_input

} else {
continue
}

@zoom reset
@FEMONE starts think
@speechbubble reset

@zoom reset
@FEMONE exits left and FEMONE is walk_neutral_offset

#}

Did you put this inside of a choice?

I didn’t even notice that. What part should I add the choice to?

I’m asking if you did because that would be the reason for error message saying the label doesn’t exist.

Try to put the label before the text of the narrator.

Yes, there is a choice before it.

Thanks, I’ll try that out.

Not sure if this helps, but here’s a screenshot (including the choice before it)…

You can’t have labels inside of a choice. Put that whole name change code after the choice instead of inside it.

I’ll just put it at the beginning of the story where there are no choices then. Thanks for the help.

Glad this got resolved! Closing :v:t2: