This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Paul Kooi
Posted Jul 12 - Read on Facebook

Hi. I'm trying to use a conditional to monitor a state change. I can't seem to get it to work.

Here is a little example project I did. Basically what I want to happen is when the user selects layerB I would like to check and see what state layerA is in.
If it's "off" I would like to change the state to "on"
If the user selects layerB and the layerA's state is "on" then I would like nothing to change.

Thanks in advance for all your help.

3 Comments

Aalok Trivedi

All you need is this: https://screencast.com/t/77dR8c047Gt

you have to have '...current.name...'

Steve Ruiz

I've been working on a module called ActionLayer for simplifying some of these cases. Here's how I'd do it using that module. https://framer.cloud/vczUb

Paul Kooi

Thanks so much Aalok Trivedi I knew I was close.. just couldn't seem to get it working. Stupid Syntax! aaaaargh :)

Read the entire post on Facebook