Hello Pinie_Pinie,
It‘s good to know that you are now fine with the change node. Nevertheless to complete the function node thing here:
Of course there is missing the assignment to the payload again like the following; my script was only to give you an example how it would work.
msg.payload = value;
Cheers
Ranki