how to combine two text local variables

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

Parents Reply
  • 0
    Certified Lead Developer
    in reply to anmolv0003

    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)
    )

Children