Learn how to use Number Variables in Figma Prototypes | Figma Bites,

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 4

  • @user-jy8yi9ou5r
    @user-jy8yi9ou5r 6 หลายเดือนก่อน +3

    I love your videos! Short, sweet and to the point, and very well explained! Thank you for making these!

    • @FigmaBites
      @FigmaBites  6 หลายเดือนก่อน

      I’m so glad to hear it! Thanks for watching

  • @teegees
    @teegees 4 หลายเดือนก่อน +1

    This was a really good demo of something I was wondering about doing!
    I have a slightly different need for calculating the total price though:
    1) imagine if the quantity of each dish maps to a different price. So for example if the quantity of beef is 1, then the price is $10, and if the qty is 2, the price is $15. And if the qty is 3 or more, the price is a flat $21.
    2) same with pastrami, etc, but the pricing structure may be different
    So for the total, I’d want to take into account all the different pricing structures.
    Is this possible? If so, how would one set this up?

    • @FigmaBites
      @FigmaBites  4 หลายเดือนก่อน

      Thanks for the comment. I’d have to play with it to know if it would work for sure but it sounds doable. You would need to set up a bunch of conditionals checking for the quantity of the item and changing the math inside of those. That same conditional would need to be repeated in a few places for total and whatnot. I’d say take a stab at it and let me know what issues you encounter. Feel free to share a link to your file once you get going