Skip to main content

When creating variables, it would be really useful to be able to include maths and text when defining a variable, which are kept up-to-date based on current values.


E.g.

With a shopping basket, I have the following variable

• Subtotal# (numeric)

Into which I add the value of each product selected in the basket.


From this value I would like to calculate

• VAT# (numeric) = Subtotal * 20%, truncated to 2 decimal places


And then display these variables in a currency

• Subtotal£ (String) = “£” + Subtotal#

• VAT£ (String) = “£” + VAT#

• Total£ (# String) = “£” + Subtotal#+VAT#


This way, I could just add/remove the product costs from Subtotal#, and use the strings for display in the prototype.

3 posts were merged into an existing topic: Calculation formula within variable input


8 votes have been moved. 3 votes could not be moved because their users already voted in the other topic.