AMP-SCRIPT gurus!
I used a <amp-bind-macro> tag (from an example) to multiply the value of an <input type="number"> field by a constant value. It worked! Now, I'm trying to multiply different values from different INPUTs and I cannot:
- find a way to reference those values.
- pass those values to the (ehm...) function.
- enjoy my first hours playing with AMP-SCRIPT.
Simply put...
I need to assign the result of this operation to a <span>
<span> = (12 + (inputA * 8) + (inputB * 2) + (inputC * 5))
Before you ROFLOL, that is not a code at all. I was just trying to picture the problem.