Skip to main content
Martin_Maricak
New Member
Jul 26, 2024 7:00 AM UTC

Opposite boolean property (negation)

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
Jul 29, 2024 3:20 PM UTC

Hey @Martin_Maricak, thanks for the feedback!

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

Desislava_Slavkova
Active Member
Sep 30, 2025 4:06 PM UTC

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
Mar 9, 2026 11:34 AM UTC

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