Skip to main content
Martin_Maricak
New Member
July 26, 2024

Opposite boolean property (negation)

  • July 26, 2024
  • 3 replies
  • 553 views

Sometimes I want one boolean component property to both show something, and hide something else.

It would be cool to be able to not only assign a boolean property to layer visibility, but also to indicate that it should show the layer if the property is false.

Example scenario: Imagine a situation where I’m designing favourites section on the app’s sidebar. I want a sidebar to be a component. Now when favourites is empty, I want to show an empty state with a CTA instead of the CTA. And I want to add a toggle that both hides an empty state, and shows a list of favorite items.

3 replies

djv
Figmate
Community Support
July 29, 2024

Hey @Martin_Maricak, thanks for the feedback!

We’ll pass this idea onto our team for future consideration.

Desislava_Slavkova
Active Member
September 30, 2025

Yes please allow user to define property to opposite of boolean value!


This would save so much work - I have to always create additional booleans to cover for those scenario when hiding one thing needs to show something else.

 

Don Pixeloni
New Member
March 9, 2026

Yes please!
This would simplify and accelerate using a Boolean for a far more realistic operation:
a single action to HIDE something and then SHOW something else - perhaps:
 



This offers a vast improvement on the current (often impractical) ways to get the same effect including: 
1. Fiddly ‘if’ statements that reference the Boolean’s current state
2. Potentially elaborate component variants.
3. Navigating across frames