Getting Global Variable Value

@Colin how can we return the message with combination of String and variable together ?
var res = global.get('LENGTH');
var res1 = global.get('CABLE_DESCRIPTION');
var res2 = global.get('FAULT_STRING');
var trig = global.get('TRIGGER')
if(trig===false)
{
msg.payload = res;
return msg;
}
else
{
return msg[null];
}