Skip to main content

I am testing out the new conditional logic features in Figma using variables to toggle the visibility of certain layers on a click. When I try to change to another state, Variant A (named Default in the image) to variant B in the IF statement, and then try to change Variant B back to Variant A in the ELSE statement, Figma automatically changes back to whichever Variant is set in the else statement. Sometimes the functionality is still there (Variant A changes to B on first click, then Variant B change to A on second click and so on. But on the conditional logic, it always displays as if both IF and ELSE are changing the Variant to the same value.


If I change variant in the ELSE statement, that same variant is filled in the dropdown in the IF statement. If I try to change the value in the IF statement, nothing happens, it remains whatever value is in the ELSE even though I selected something different.


Hi @Seb-Voolt thank you for reporting this, I have passed this information along to our engineering team.


I would also like to mention a variation of this bug.

When I attempt to arrange the actions in the IF portion of the function, those actions will appear in the ELSE portion of the function. I have to then delete the duplicate actions.


Also noticing that the function will not execute properly unless actions are ordered a certain way. For example right now, if I arrange first Set Variable , then Navigate To, then Close Overlay, then Open Overlay, it will function properly. But rearranging any of those and the function will break.


Also helpful future features:


Live Inspector to display when variables are being manipulated. preferably in the Prototype Preview Pane.


Copy,Paste or ability to save a string of actions to apply to different components.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.