Noob question: Why won't reclicking the layer once it's state is 'off' switch it back to 'on' with this if/else statement?
You want to use current... not just .states
Also just a heads up, this could be simplified to $.Check_1.states.switch("on", "off")
You'd want to write it like thisif $.Check_1.states is "on" $.Check_1.states.switchInstant "off"else $.Check_1.states.switchInstant "on"
Or even $.Check_1.states.next()
Yep... or that.
I was trying to get him the correct syntax first of all..
thanks Guys...super helpful!
The dollar sign there is just a variable name, right?
also you say "if states... _=_ " instead of _==_, ,the former which assigns a value, not compares.
Thanks everyone for being so supportive. I dabbled quite a bit this weekend and feel more grounded in the language and framework. Will present full prototypes to team this week. Always great to see supportive communities, this will really help the ushering in of Framer as the industry standard to prototyping tools.