Page 1 of 1

Setting a value of two combined variables

Posted: Thu Mar 01, 2018 9:35 pm
by mariya.syera
Using action Set Value, how do I set a value of two combined variables?

Something like this:

Re: Setting a value of two combined variables

Posted: Thu Mar 01, 2018 10:03 pm
by odklizec
Hi,

I’m afraid, that’s currently not possible with SetValue action. You will have to convert the SetValue action into user code and then merge both variables in code.

Re: Setting a value of two combined variables

Posted: Tue Dec 12, 2023 10:39 pm
by markos
Not having a built-in feature to concatenate variables is annoying.

On the other hand, creating a custom code is a "one-liner" like this:

Code: Select all

        [UserCodeMethod]
        public static string concat3strings(string s1, string s2, string s3)
        {
        	return s1 + s2 + s3;
        }