Script help Advanced Choices

choice inside choice works like this

choice
"option1" {
choice
“YES” {
} “NO” {
}
} “option2” {
}

you still need all the opening and closing brackets