<?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>Declare and append values to local variable</title><link>https://community.appian.com/discussions/f/user-interface/39039/declare-and-append-values-to-local-variable</link><description>Is there a way to declare an empty array as a local variable (local!a) --&amp;gt; Perform some operations in another local variable(local!b) and append the results to local!a.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Declare and append values to local variable</title><link>https://community.appian.com/thread/147748?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 14:26:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a731d43a-23b2-4d3a-a139-2942238dc053</guid><dc:creator>sanjuktab2257</dc:creator><description>&lt;p&gt;Thank you &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp; and &lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;&amp;nbsp;, That was helpful. The above example is just a protype that I had created. The expression is quiet complex in the original code.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Declare and append values to local variable</title><link>https://community.appian.com/thread/147690?ContentTypeID=1</link><pubDate>Thu, 01 May 2025 13:07:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:585125b7-1831-4f74-b1bd-5d4ae69fcd63</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As Stefan mentioned already, no.&amp;nbsp; You&amp;#39;re thinking about it backwards.&amp;nbsp; There&amp;#39;s no need at all to &amp;quot;declare&amp;quot; an empty value for &amp;quot;a&amp;quot; if you&amp;#39;re just going to go on and perform some calculations:&amp;nbsp; perform your calculations first, then declare your local variable based on that result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Declare and append values to local variable</title><link>https://community.appian.com/thread/147684?ContentTypeID=1</link><pubDate>Thu, 01 May 2025 06:56:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de29174a-57ab-478e-8a60-9c6c21cd8ea0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;No. Variables in Appian are immutable, following the functional paradigm of the SAIL expression language. But you can just create a new variable holding the values. And, you do not have to declare a local variable, just to define the output of your expression.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>