Skip to main content
Question

Conditional Logic Bug


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.

This topic has been closed for replies.

4 replies

Ryan_52
Figmate
  • Technical Quality Specialist
  • 382 replies
  • June 30, 2023

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


Derek_Williams1

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.


Derek_Williams1

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.


  • 0 replies
  • August 3, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings