I have an API call that is returning an array. I am loading a list of those numbers using the each items: value function in the expression builder. The list is currently: 50,100,30
I would like to scale those numbers down by 10 then add 5 to them.
Goal is a result set: (50/10)+5 = 10, (100/10)+5 = 15, (30/10)+5 = 8
Result set: 10, 15, 8
Unsure how to build an expression which does this. Any suggestions?
@mc3digital: Note that this only works because of JavaScript’s type coercion features and will work fine for many but not all use cases.
(For example, let’s say you have two lists of numbers and you want to multiply each number in list 1 by the corresponding value in list 2. For such cases, one can use the List Math action in Floppy [which also has a server-side action equivalent], or the PROCESS List action in List Shifter [now found in Floppy].)