I have created this math mystery activity and have used a lot of conditional statements to show and hide graphics. I’d like to make more of these activities and use this as a template so I want my code to allow me to create new activities without having to do so much editing in the computation layer. Is there a way to hide a component by saying another component is correct, without typing the full solution to the other component? Currently each component that I want to conditionally hide has the full solution to the other component in it.
On screen 2 I see you have a correct variable for the input, you can pull that using script in your other components. ex: hidden: not(clue1.script.correct)
or If you are pulling it within the same component ex: hidden: correct
Unsure why CL requires .script to call a value from another component… wouldn’t it just be easier to directly refer to a variable using this format? <componentName>.<variableName>