Append an enumerated value at the end of a word, ex Jim1, Jim2, Jim3

Hello

I am New to UiPath

I am looking for a way to be able to append an enumerated value to an end of a word. I am filling out a form.

Thank you in advance,
Lee

Hi @automagic

Welcome to Community!!

Assign: counter = 1

While condition (e.g., filling out the form):
  Assign: name = "Jim" + counter.ToString
  // Use the 'name' variable in the form

  Assign: counter = counter + 1
End While

Regards,

Hi automagic,

If you need to concatenate an string variable and a int variable at the end of the word, then you need the follow the next steps:

  1. Create a variable Var of type string to store the desired word.
  2. Create a variable Num of type int to store the integer number.
  3. Create a variable Result of type string and concatenate Var + Num as follow:
    Result = Var + Num.ToString.

Hope helps you!

Hi,

If you use StudioX, the following may help you.

Sample
NewBlankTask20240125-1.zip (50.1 KB)

Regards,

@Yoichi Thank you very much for the reply. I am now trying to modify it so that it fills a web form with Jim1, then finishes, then starts again and the same web form with Jim2 and so on. Thank you

1 Like