I am trying to create a TCL that loops through the insurance segments and checks for a certain insurance. I know I need to use a for loop but I am unable to write it.
This is what I have so far.
set msg [msgget $mh]
set segments [split $msg r]
This is where I can’t figure out. I am doing the following for my loop
set seg1 $segments
foreach segment $seg{
if {[cequal [crange $seg1 0 2]IN1]} {
lappend seg $segment
}
}
Thank you for your help
Yamil