<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>how to combine two text local variables</title><link>https://community.appian.com/discussions/f/best-practices/29877/how-to-combine-two-text-local-variables</link><description>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 := &amp;quot;Hello,&amp;quot; , 
 localVar2: Text := &amp;quot; World!&amp;quot; ) 
 local!combinedText := local!localVar1 &amp;amp; local!</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/121488?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 06:17:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4f73dba-d525-469e-846c-6c9c5fbbff03</guid><dc:creator>taruns7606</dc:creator><description>&lt;p&gt;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).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/118642?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 07:44:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75c23876-41b5-4e4d-817b-36b0b31bb5a1</guid><dc:creator>anmolvijayvergiya</dc:creator><description>&lt;p&gt;Thank You , by mistake I typed it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/118622?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 14:28:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80adc0a5-1783-4156-8e5b-ecec51afdc64</guid><dc:creator>venkatb0004</dc:creator><description>&lt;p&gt;Hi Thanks for your support,&lt;/p&gt;
&lt;p&gt;i want to learn more things in Appian&lt;/p&gt;
&lt;p&gt;So requesting you to help me more thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/118621?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 14:27:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f638dfd-d1c7-4fc3-8c3a-5178fcc23db4</guid><dc:creator>venkatb0004</dc:creator><description>&lt;p&gt;Hi Thanks for your support,&lt;/p&gt;
&lt;p&gt;i want to learn more things in Appian&lt;/p&gt;
&lt;p&gt;So requesting you to help me more thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/118620?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 14:27:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9074c672-1536-4166-bcb6-02ba9177765a</guid><dc:creator>venkatb0004</dc:creator><description>&lt;p&gt;Hi Thanks for your support,&lt;/p&gt;
&lt;p&gt;i want to learn more things in Appian&lt;/p&gt;
&lt;p&gt;So requesting you to help me more thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/118619?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 14:08:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bc17f1b-57c9-4d3a-b9e9-fd670ee32f2d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Using &amp;quot;&amp;amp;&amp;quot; inside concat() is nonsense. Concat takes any number of parameters. I changed this in my example below.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!Var1 : &amp;quot;Hello,&amp;quot;,
  local!Var2 : &amp;quot;World!&amp;quot;,
  
  concat(local!Var1, local!Var2)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/118618?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 13:49:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:695fada5-9c77-45d4-aff1-172bb833f6c0</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;I personally recommend using concat() to&amp;nbsp;concatenate&amp;nbsp;text together simply because it is easier to collapse/uncollapse in the expression editor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to combine two text local variables</title><link>https://community.appian.com/thread/118612?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 12:59:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79028c83-672b-47da-bb25-79f454ca6f62</guid><dc:creator>anmolvijayvergiya</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!Var1 : &amp;quot;Hello,&amp;quot;,
  local!Var2 : &amp;quot;World!&amp;quot;,
  local!combinedText : local!Var1 &amp;amp; local!Var2, 
  /*or*/
  /*local!combinedText : concat( local!Var1,local!Var2),*/
  local!combinedText
)&lt;/pre&gt;&lt;br /&gt;You can use the &amp;amp; operator or you can use concat() function&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also :&amp;nbsp;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/1385.Screenshot-2023_2D00_08_2D00_23-152716.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>