Skip to main content
Oct 18, 2023 5:40 PM UTC
Question

Prototyping with variables - subtraction expression not working as expected

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.

1 reply

djv
Figmate
Community Support
Oct 24, 2023 3:27 PM UTC

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?