Invert boolean variable for layer display

Agree with this request. I find myself really limited by booleans without them acting as more of a boolean toggle for the layer, and being able to set a layers default state for the boolean mode. Boolean supporting showing or hiding of a layer vs the boolean itself being the show hide would be amazing and really cut down on duplicative variants (and thus memory usage too!). :pray:

+1 for this!!!

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.

1 Like

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.

2 Likes

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

3 Likes

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

2 Likes

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

1 Like

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 :frowning:

1 Like

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.

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.

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

1 Like

Being able to set the Value of Var z depending equal to !Y in Local Variables would already solve this:
so lets say I have a boolean “Show Edit Dialog” and now I want to link the variable “Forbid change” (applied in another comp) to it, so that whenever Show Edit Dialog is true, Changing some other component is forbidden.

Or do I oversee something and this is already possible?

Thank You!

Thank you!