Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Iteration on non-existent segment.
I need to determine if an optional segment exists in my source message.
I know there has to be a way to do this but I
Hi John,
Using the IF statement with @null should work!
I have an ADT-translation, where I need to check whether a MRG-segment is present. I use an
IF 0(0).MRG.00211 ne @null
to check this.
If you get an IR-tags mismatch, check the mapping of your fields: there’s something wrong there.
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands
Helps if all the iterations are setup correctly.
The IF was working fine the outside iteration was not. I just needed to move the IF statement up two levels.