NOT SURE WHAT HAPPENED BUT PART OF MY RESPONSE GOT ZAPPED IN THE FIRST ATTEMPT
If you look at the script (code) for a loop step it’s just a basic for loop.
for (loopStep = 0; loopStep < inputStep.header.length; loopStep++)
So somewhere inside the loop you would put a branch step with the condition to test, and then either in the true or false side, depending upon your logic, add a custom step.
Inside the script (code) for the custom step set the loopStep variable
loopStep = loopStep < inputStep.header.length;
In your case ‘inputStep’ would probably be replaced with the name of the configured operation that is doing the select.
#broker#Universal-Messaging-Broker#webMethods#Integration-Server-and-ESB