You can try:
String.Concat(var1,var2) to get your desired result.
String.Join method is used to concatenate the elements of an array, using the specified separator between each element.
you’re trying to add two numbers and convert the result to a string in UiPath, but you’re getting unexpected results because you’re concatenating the numbers as strings instead of performing numerical addition first. To correctly add two numbers and then convert the result to a string, you should use the following expression:
(Int_Number1 + Int_Number2).ToString()
Make sure that Int_Number1 and Int_Number2 are variables or expressions that hold numeric values. The + operator should perform the addition, and then .ToString() will convert the result to a string.
It actually recognize the type of value you have given.
If you give 15+15 then UiPath takes it is an integer then gives 30
if you give “15”+“15” then it takes as string then gives 1515.
String.Concat(var1,var2) to get your desired result.
String.Join method is used to concatenate the elements of an array, using the specified separator between each element.