How to combine two array elements into a new variable?

If array element 38 : 123 ABC Road #01-01 and element 40 : Singapore 123456, I would like to create a new variable called address to store both array 38 and 40, what expression should i use?

1 Like

hello @_itslw,

you can try creating List of Strings type and store the variable

listStr = List(Of String)({var38,Var40})

Cheers
@_itslw

What is the variable type to declare in the workflow?

1 Like


my variable are RawAddress_P1 and RawAddress_P2, i would like to combine both into 1 new variable named address_1, but i can’t seem to do so.

1 Like

whats the error?

what are the RawAddress p1 and p2 Variable type?


Both RawAddress_P1 and RawAddress_P2 are declared as string variables.

1 Like

Hi @_itslw,

New List(of String)({RawAddress_P1,RawAddress_P2})

Try this

How do I check the output of Address_1 when the workflow is run? In the end, i need to write this line out as 1 whole string of words?

1 Like

it’s array, if you want to check the first value you can just do this Address_1(0).ToString this will give you RawAddress_P1

if you want both to display at once you can try this

String.Join("–",Address_1)

Cheers
@_itslw