Choice error - issue with brackets

NARR
Which skin tone does Gwen have?
choice (SKIN)
“Light” {

} “Medium” {

} “Dark” {
}

if (SKIN is “Light”) {

@GEMMA changes bodyColor into Neutral 03
@GEMMA changes mouthColor into Rose Matte

} elif (SKIN is “Medium”) {

@GEMMA changes bodyColor into Neutral 05
@GEMMA changes mouthColor into Rose Matte

} else {

@GEMMA changes bodyColor into Neutral 07
@GEMMA changes mouthColor into Pink Cashmere Matte

}

It keeps telling me that one of the brackets doesn’t have a matching one but I copied it exactly how it’s set up from Dara’s site?

You have two invincible spaces, one inside the if choice and one inside the elif choice. Copy and paste the code below and it should work.

if (SKIN is “Light”) {

@GEMMA changes bodyColor into Neutral 03
@GEMMA changes mouthColor into Rose Matte

} elif (SKIN is “Medium”) {

@GEMMA changes bodyColor into Neutral 05
@GEMMA changes mouthColor into Rose Matte

} else {

@GEMMA changes bodyColor into Neutral 07
@GEMMA changes mouthColor into Pink Cashmere Matte

}

Thank you!

1 Like