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

What is Framer? Join the Community
Return to index
Cyrus Cheng
Posted Feb 14 - Read on Facebook

how can i add a conditions to a layer.on Events.click,->...
I mean layer.on Events.click can do only under one conditions is true?

4 Comments

Benjamin Den Boer

Hey Cyrus, you can assign the value true or false to a variable (called a boolean) and change this depending on some interaction or function. Then, you could write a simple conditional statement. Note that this is the same as simply writing "if condition". (Also only runs if "condition" evaluates to "true)

Benjamin Den Boer

Or you could use a conditional statement based on another layer - like checking the animationEnd event or current state of another layer.

Cyrus Cheng

ths very mach...

Fran Pérez

You could also do:

Read the entire post on Facebook