Hoping someone can help me with the formCalc syntax on an order form I'm putting together. I'm sure this can be done relatively easily but I'm unsure if I should declare a variable and use that for further calculations, or if I'm heading in the right direction but just have the syntax incorrect.
Background: small bakery that makes pound cakes. All of their ~30 flavors cost $25 for a whole cake, $15 for half, except for plain, which is $20 and $12, respectively. I'd like for the form to 1) detect the user's size choice, 2) detect the amount, and 3) calculate a subtotal per cake. Additionally, I'd like to add the three subtotals boxes up to get an order total.
I'm using a drop-down list for the flavors. The Plain flavor is #29, and my non-working FormCalc code is as follows: