Skip to main content
July 11, 2023

Invert boolean variable for layer display

  • July 11, 2023
  • 45 replies
  • 9501 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

April 29, 2024

+1 for this!!!

Joseph_Sjoblom
New Member
May 13, 2024

I’ve done the same and yes, it feels redundant. I thought I must be doing something wrong, but it seems this approach is a feature, not a bug.

Don
May 24, 2024

Design would be fairly simple. In the layer section, it shows a bound boolean property as a chip with an eye icon. Swap that icon for the closed icon, meaning you hide it when true. If the user clicks the icon in the chip, it swaps being visible or hidden when true.

Desislava_Slavkova
Active Member
July 25, 2024

I’m still waiting and hoping we can have this soon. +1

Kanika1
July 26, 2024

+1, much needed for complex prototypes. Right now 2 variables need to be created to handle this scenario, which makes managing variables a mess.

July 26, 2024

I’m new to Figma but already run into the need for this after a few days

July 29, 2024

This is such a basic feature, +1 for this to be implemented!

I am new to Figma, but previously has been using Axure for more than 15 years. I had to switch to Figma due to other reasons, but prototyping abilities of Figma are worse than in Axure 15 years before. Why people tend to call Figma today’s “Standard”?

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

Timo_Karhu1
September 26, 2024

Example problem:

  • Page has a title with notice label like (fill this form)
  • Page has a notice at the top giving instructions to the user
  • Page has multiple inputs (components) with empty/filled states

Each input sets: X_FILLED = true
Each input has click: if X, Y and Z then PAGE_DONE = true

The additional elements on the page then depend on PAGE_DONE boolean:

  • Hide (fill this) tag in notice color
  • Change color of section title from notice color to regular color (hide + show title)
  • Hide additional filling instructions
  • Show all done instructions

Please input the “Show if false” somehow.

Christian_Franck
New Participant
November 22, 2024

That would be helpful for me too. Give more flexibility. Especially when you need to toggle something like either showing a label or an icon. The boolean property “Use Icon” true can then be used for showing the icon and hiding the label. For now I need to hide or show it manually or create a variant for it. This blow up my variants I need to keep maintained. But there are many other use cases for me.

igor.paillard
December 12, 2024

Single and simple show hide variable ( when I click, if true then false and if false then true)