Using correct with feedback (evaluating function)

I would like to allow for multiple correct explicit equations and show feedback on the slide of correct or try again. I am working on the explicit equation on slide 4 and getting an error in the note about an undefined correct variable.

Thank you for your help!

You didn’t define correct as a variable in the explicit2 CL, you just used the sink. So change that line to:

correct = (C1 = U1) and (C2 = U2) and (C3 = U3)
correct: correct

and then in the other component, refer to it using explicit2.script.correct

You are amazing–thank you!!

what does “script” do? Why can’t you just do “explicit2.correct”?

Script is how you access a variable that is defined within that particular component’s CL.