var answer = 3.14
var correct = String.bool(3.14 == answer)
if (correct)
{
feedback.ReplaceSelection("Your answer was correct!")
}
else
{
feedback.ReplaceSelection("Your answer was incorrect.")
}
In this example, correct is true, because the variable answer equals 3.14. The if statement will evaluate to true and replace the text in the Text object named feedback with ‘Your answer was correct!"