I have two variables from an output of a smbs. I want to subtract them by function to be able to make an indication how much space is available on a disk (in percent).
A flow based programming language requires a different way of looking at the flow of data and the code which is applied to it.
A message leaving your T1 function has a msg.payload value.
A message leaving your T2 function has a different msg.payload value.
Each of these messages is processed seperately by the Subtraction node. It only knows of the msg.payload which it's processing, with no memory of previous values.
You need to pass your two messages through a Join node to combine them into one with both values.
Perfect, this works fine now. Must find out, why they gife me double outputs, but i think this is a little thing.
Thanks alot for the help and have a nice day