From my recent post, I uploaded a set of values into a global, and I am trying to compare the first field, and then
$GLOBAL("123", "bone issue")=""
$GLOBAL("234","joint issue")=""
Now, I want to compare and see if the DG1:4.1 segment has the code $GLOBAL and then replace the DG14.1 segment with the code and the description
so For Eg: if DG1:4.1 exists in $GLOBAL("123") then replace the segment with the code and description
Can someone guide me on how I can achieve this?