Skip to main content
Jul 11, 2023 11:02 AM UTC

Invert boolean variable for layer display

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
    Oct 22, 2025 10:05 AM UTC

    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
    Oct 22, 2025 10:32 AM UTC

    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
    Feb 23, 2026 9:43 AM UTC

    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 1:46 PM UTC

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

    fernando.santos-nuuv
    New Participant
    Jun 8, 2026 7:59 PM UTC

    Cmon Figma, it’s been over 2 years!