Why doesn't this conditional work? Trying to get it to toggle between red and blue
layer = new Layer
layer.onClick -> if layer.backgroundColor is "red" layer.backgroundColor = "blue" else layer.backgroundColor = "red"
You have to check layer.backgroundColor.color. :/
Probably because background color values automatically get converted to a Color object.
You'll maybe want to use hex values.
Ok, that makes sense. I'm new to framer and was banging my head against this. Thank you both!