Hi I am Learning Appian development, i have doubt how to combine two text local variables please hep me on this
a!localVariables
(
localVar1: Text := "Hello,",
localVar2: Text := " World!" )
local!combinedText := local!localVar1 & local!localVar2
Discussion posts and replies are publicly visible
a!localVariables( local!Var1 : "Hello,", local!Var2 : "World!", local!combinedText : local!Var1 & local!Var2, /*or*/ /*local!combinedText : concat( local!Var1,local!Var2),*/ local!combinedText )
Also :
I personally recommend using concat() to concatenate text together simply because it is easier to collapse/uncollapse in the expression editor.
Using "&" inside concat() is nonsense. Concat takes any number of parameters. I changed this in my example below.
And there is no need to declare a local variable just to define the output of an expression. I see that a lot recently and really wonder where this is coming from.
a!localVariables( local!Var1 : "Hello,", local!Var2 : "World!", concat(local!Var1, local!Var2) )
Hi Thanks for your support,
i want to learn more things in Appian
So requesting you to help me more thanks in advance
Thank You , by mistake I typed it.
We can use concat() function in which we need to wrap both the local variables local var1 and local var2 in concat() function and for the spacing in between we can use char(32). for ex:- concat(localvar1,char(32),localvar2).