Skip to main content
July 11, 2023

Invert boolean variable for layer display

  • July 11, 2023
  • 45 replies
  • 9502 views

Right now, tying layer visibility to a variable means if the boolean is false = layer is hidden. It’d be great if we could invert this functionality (boolean is false = layer is shown) on a per-layer basis as I need to show some layers and hide others depending on the state of the variable.

Anyone else run into this?

45 replies

Dirk_Schiller1
New Member
October 22, 2025

I am afraid that HyperCard app on original Macintosh in 90’s was more capable 😦


As HyperCard used it’s own scripting language it absolutely was capable.

 

 

milesweb
New Participant
October 22, 2025

Right now, tying layer visibility to a variable means if the boolean is false = layer is hidden. It’d be great if we could invert this functionality (boolean is false = layer is shown) on a per-layer basis as I need to show some layers and hide others depending on the state of the variable.

Anyone else run into this?

Add a per-layer “invert visibility” toggle (e.g. a checkbox). When checked, it flips the logic so that:

  • If invert = false: visible = variable

  • If invert = true: visible = !variable

Paloma_Pedrosa
New Member
February 23, 2026

I would love this feature to simplify my components on the design system. Example of a common use case. I am building a button tab which can have an icon or a tag on the left, but should not have booth at the same time (if one is showing, the other should be hidden). I need to prevent our team to create that exception while designing. Slots would also help on this, if it ever comes...

Smith_Samuel_D
Active Member
May 20, 2026

I am also in need of this! Keep the thread alive.

fernando.santos-nuuv
New Participant
June 8, 2026

Cmon Figma, it’s been over 2 years!