Deleting string from stringList

Hi.
I m new i webMethods Flow.
I want to use upperCase to upper elements from stringList, but at the same time I want to skip value ‘b’.

For example
list[0]=‘a’
list[1]=‘b’
list[2]=‘c’

I try to use branch with exit value when function meet b. But this make null like this
upperList[0]=‘a’
upperList[1]=null
upperList[2]=‘c’

I want have something like this (without null)
upperList[0]=‘a’
upperList[1]=‘c’

Any idea’s to solve this problem?

You can’t delete elemetns in an existing list. You have to collect them in a new list. If an element should be skipped, just do not add it into the new list.

1 Like

Hi,

After collecting the items in new temporary list, this one can be mapped back to the original list after the loop has finished and the temporary list can then be dropped.
Remember to leave the output array on the LOOP step empty, otherwise the input and output array are required to have the same length as the $iterator variable applies to both.

Regards,
Holger