cancel
Showing results for 
Search instead for 
Did you mean: 

Concatenate string variables

Former Member
0 Kudos

Hello,

how can I concatenate string variables in the 'Assigned variable' (from an Input Field)?

For example:

if (@From0!='' and @To0=='',@From0 + : + @From0, @From0 + : + @To0)

I've tried to concatenate them with the + symbol but I get a mistake.

Thanks in advance.

Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

PradeepBondla
Active Contributor
0 Kudos

Hi,

String concatenation is done by & and " " in VC. (& and double quotes " ")

for example, in your case it will be

if (@From0!=' ' and @To0==' ',@From0&" : "&@From0, @From0 &" : "& @To0)

that is---- assigned value & " <string>" & assigned value.

@From0 & " : " & @To0

Thanks,

Pradeep

Former Member
0 Kudos

If I am correct, the concatenation is only available for TEXT fields. The sign is not "+", but "&"

Hope it helps

PY