Evaluating Card Sort Correctness in a Note

I would like to give my students personalized feedback on card sort slides. I don’t see any way to provide feedback directly on the slide, but I see that I can reference the card sort by name in a subsequent slide. So far I have been able to do something simple like this (as a script in a note on the next slide):

content:"You got {sort4.totalCorrectCards} of {sort4.totalCards} right on the last slide.

That works ok, but I’d really like to provide a more customized message. I tried:

when (sort4.totalCorrectCards=sort4.totalCards)
content:“Great work! You got them all right.”
otherwise
content:"You got {sort4.totalCorrectCards} of {sort4.totalCards} right on the last slide. Try again.

This gives me a syntax error, expecting a “)” but seeing a “=”.

I also tried to create a variable within the script, but I don’t seem to be able to create a variable within a note script.

I’m new to CL (just found it yesterday - excited about what I might be able to do!) so expect I’m missing something simple. Anyone have any suggestions?

You just need to move the “content:” sink at the start. It will apply to everything after it. There is no need to write it it twice. Also do not forget to use $ sign to bring in a variable into the text.

Try this code:

content:
when sort4.totalCorrectCards=sort4.totalCards
"Great work! You got them all right."
otherwise
"You got ${sort4.totalCorrectCards} cards out of  ${sort4.totalCards} on the last slide. Try again."
2 Likes

Excellent. That worked perfectly. Thanks so much!