Multiplying multiple columns with different columns in a table

I tried to set up da workflow where you have a ‘system’ of Variables and Coefficients that are identified by their name “Var1” and and addition of “_coeff” like in your example. The workflow is flexible so that it would take any number of columns of that structure and combine them (multiply in my example). If you know the operation maybe you could also put that in a variable and construct a formula with a simple Java Snippet within the loop.

For the loop I have only found the solution to rename every variable into a standard name, use the Math node and then name it back.

Maybe you could have a look at that and try to expand.

If you have sort of a ‘fixed’ environment of variables and operations you want to do, or it would not change that much it could be an idea to think about a Java Snippet that would do that.

kn_example_multiply_multiple_col.knwf (93.1 KB)

2 Likes