web stats
Mirth Community - View Single Post - For Duplicate FT1 Segment Add Modifier to FT1.26.1
View Single Post
  #2  
Old 12-13-2013, 12:54 PM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,299
cory_cole is on a distinguished road
Default

var i = 0;

if(msg['FT1'].length > 1)
{
for each (ft1 in msg.FT1)
{
if(i < 3)
{
ft1['FT1.26']['FT1.26.1'] = '51';
}
else
{
ft1['FT1.26']['FT1.26.1'] = '91';
}
}
}
Reply With Quote