How to sum flow variables in a Function node

Hello! I’m trying to make a node that sets an input_datetime to indicate a time.

I have three flow variables with different numbers in them, and I need to sum them together to set this input_datetime indicator.

I was already able to set other indicators with this function node:

let now=dayjs().add(flow.get('washer_time'), 'minutes');
msg.payload=(now.format("HH:mm:ss"));
return msg;

But now instead of getting the value of only one flow variable I need to sum three different ones, and I’m not finding the right wat to do this, so I’m grateful to have any recommendations :slight_smile:

Thanks,
Rodrigo

Can you provide more detail on what you want? Is it not just

flow.get('number1')+flow.get('number2')+flow.get('number3')
1 Like

Yes! Thanks @michaelblight, I had tested that but it seems that there was some syntax error and I wasn’t sure so I came asking here :s

Rodrigo.