cancel
Showing results for 
Search instead for 
Did you mean: 

Math for more than two numbers

Flow really needs some basic math functions improvement. For example, the ability to do add/subtract/multiply/divide for more than two numbers. Even a sum function so we can do:

 

sum(var1, var2, var3, var 4, var5)

 

instead of:

 

add(var1, add(var2, add(var3, add(var4, var5))))

 

All these connectors are great, but Flow still lacks so much basic functionality for math, strings, dates, etc. How about a little investment there?

Status: New
Comments
Advocate II

true ! I am also searching for this

Regular Visitor

@flowbeginner @barret 

Yes, there is no standard function for this, however you can still do this using the add function nested loop

For example if you have to sum 5 variables, this will work

add(variables('InterestScore1'),add(variables('InterestScore2'),add(variables('InterestScore3'),add(variables('InterestScore4'),variables('InterestScore5')))))