Boolean condition in if... else statement doesn't work.


I wanted to use the hidden boolean function as a condition in an if… else statement, but it doesn’t seem to work. Here’s the code:

To explain, I want this interactive animation code to execute whenever fridayTT is not hidden but saturdayTT is hidden. The animations work outside this part of the code but it doesn’t inside. Is there something very obvious I’m missing here?

Thank you!

I think you need to put your IF statement inside the onClick functions.

that worked perfectly! Thank you :slight_smile: