if($control[contains(text(), 'MB_')]) then replace($
control ,"MB_","") else if($
control[contains(text(), 'NA_2')]) then replace($
control ,"NA_2","") else if($
control[contains(text(), 'NA_3')]) then replace($
control ,"NA_3","") else ''
I am trying to use the calculated value to modify what goes to an alternate control. Basically one control goes to two data base destinations and should contain the same value. The answers in the control are set with a prefix to indicate the database destination. For the first destination I want to remove the prefix and keep the database answer. But then I need the if statements to continue so that it removes the answers that will be moved to the second database destination.
In short, I need the if statements to not terminate when the first is executed. I imagine that i need a different operator or need to modify the placement of parentheses? I just do not know the syntax.