"not" function within explainPrompt

I thought this was a fairly straight forward thing. I do not understand why this is giving me an error.

explainPrompt:
when not (this.isSelected(3)) “Why do you think this is a bad name for the angle?”
otherwise “Great choice! Why did you pick this answer?”

It is giving me a Syntax Error. Expected_OTHERWISE_ token but found BEGIN_STRING.

Removing the space after not might work.

It did indeed. Thank you.

1 Like