return (val === undefined || val == undefined || val == null || String(val).length <= 0) ? true : false;
user = String(recipient.crmId);
user = String(targetData.crmId);
I am testing this script with 2 cases:
1) Query on recipient + delivery #1 -> it works
2) Query on list + delivery #2 -> it does not work
so I'm guessing that the issue is inside the IF above (not working as I were expecting).