Conditionally hiding components

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.

Here is a link to the actvity:

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
Screenshot 2025-06-30 at 11.52.17 AM
Screenshot 2025-06-30 at 11.52.48 AM

That works perfectly. Thank you!

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>

You’re able to give variables the same names as sources, so it avoids collisions.

number(`a`): 5
number = 10