Hello, I need to check the length of a field (PID-7 DOB in this case) in an xlate and take some action if the field length is less than 8 chars.
I have tried grabbing the field length using some tcl fragment code and saving into a temp var, and then doing a numeric compare to see if the result in less than 8...
Here is the fragment code (input is PID-7, output is
@string_length):
set xlateOutVals [list [string length [lindex xlateInVals 0]]]
Here is the IF statement:
IF
@string_length < =8
The IF always evaluates to false. Does anyone know why? If I hard-code the value of
@string_length to something less than 8, then it will work.
Thanks,
Steve