Skip to main content
Question

Prototyping with variables - subtraction expression not working as expected

  • October 18, 2023
  • 1 reply
  • 293 views

Hi! I’ve been playing with variables for prototyping and using the Figma Prototyping with variable example file. When trying out the expression to decrease the cart amount. I’m using the same exact expression from the demo. When previewing the interaction, clicking on the add to cart button decreases the amount from 4 to 3 but then stops working and won’t decrease the count when clicking again. I’m using the set variable to amount available and then the expression is amount available - 1. Anyone else encountering this? Couldn’t find anything on the forum.

This topic has been closed for replies.

djv
Figmate
  • Community Support
  • October 24, 2023

Hey @Kari_Waldrep, sorry to hear this is happening!

Are you able to include a link to your file and share it with support-share@figma.com, so we can try to take a closer look?


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