Reset on change for more than one variable

Hi,

I’m using CL to reset a graph. It already resets when a coordinate is pressed (when this happens, a varible called Resetcount changes, so the CL is
resetOnChange: “${graph6.number(r_{esetCount})}”

However, I’d like it to also change when some coordinate points have been changed on the graph. These are being copied over from a graph on the previous screen. So for example, if a pupil goes back to the previous screen and moves coordinate point x_a then I’d like the graph on the next screen to reset. I’ve tried
resetOnChange:
when “{graph5.number(`r_{esetCount}`)}" or when "{graph5.number(x_a)}”
or when “{graph5.number(`x_b`)}" or when "{graph5.number(x_c)}”
or when “{graph5.number(`y_a`)}" or when "{graph5.number(y_b)}”
or when “${graph5.number(y_c)}”

But it says “unexpected end of tokens” and I don’t know enough about CL to know what to change!

Josie

Conditional when-when-otherwise statements require a condition and result:

when thisCondition thisResult
when thisCondition2 thisResult2
...
otherwise defaultResult

This is not necessary for resetOnChange though, which simply resets if there is a change to the string. So if you want any change to those values to reset, just throw them all together in one string:

resetOnChange: "${graph6.number(`r_{esetCount}`)}
${graph5.number(`x_a`)}${graph5.number(`x_b`)}${graph5.number(`x_c`)}
${graph5.number(`y_a`)}${graph5.number(`y_b`)}${graph5.number(`y_c`)}"

(The returns aren’t necessary. Just made it a little more readable.)