Getting Global Variable Value

Right at the start of this thread, you had the code:

global.set("TRIGGER",msg.payload);
var res = global.get('LENGTH');
var res1 = global.get('CABLE_DESCRIPTION');
var res2 = global.get('FAULT_STRING');
var res3 = global.get('TRIGGER')
if(res3===true){
msg.payload = "res"+"res1"+"res2";
}
else{
return msg[null];
}

As Paul pointed out, the line:

msg.payload = "res"+"res1"+"res2";

Will result in msg.payload having the value "resres1res2". If you meant to join those three variables together, you should do:

msg.payload = res+res1+res2;

You will also need a return msg at the end so it returns the message.

That doesn't help explain what format you want it to be in. I have assumed you want it to return a message with the three values joined together as a string.

If instead you want it to return a message with an object payload with the three separate values in it, you could do:

msg.payload = {
   res: res,
   res1: res1,
   res2: res2
}

You would then be able to reference the individual properties later in the flow as msg.payload.res and msg.payload.res1 etc.