Extracting and Saving Multiple IDs from a Single Cell in UiPath


if you’re expecting a fixed number of variables, then you can just keep it simple and use a multi-assign statement instead, in which you can set the variables as:

ID1 = arrValue (0)
ID2 = arrValue (1)
ID3 = arrValue (2)

I don’t see the benefit of using a loop if ultimately you always have a fixed amount of values.
The loop makes sense if you want to make your procedure more dynamic (for example, if the number of values changes, or if you want to apply the same exact behavior in the body of the loop for each value, which is not your case because you’ll have to hard-code the target variable names anyway).

1 Like