List.ReplaceItemAtIndex

I see, but that doesn’t allows exceptions does it? If I build a workflow with two List.ReplaceItemAtIndex, it means that I’ll only be allowed to have two indexes to be changed, but in some cases I may have one, or four, etc…

Any ideas to handle that?
Cheers