<?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>Evaluation of local variables...</title><link>https://community.appian.com/discussions/f/new-to-appian/19439/evaluation-of-local-variables</link><description>Hi, 
 why is it that in the following example (from tutorial 103) the query rule is evaluated on first load and the other local!Variables seem to be evaluated whenever there is a change? 
 a!localVariables( local!locationsList: rule!ONT_INT_getAllAddresses</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Evaluation of local variables...</title><link>https://community.appian.com/thread/76031?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 12:28:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d21eb47a-c814-467b-b94a-5aedd2fa152a</guid><dc:creator>aveldena</dc:creator><description>&lt;p&gt;because it is important to me to be polite and I know that answering newby questions is not always fun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of local variables...</title><link>https://community.appian.com/thread/76030?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 12:28:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99eed21e-1da7-42a0-842a-0172a1dc7a93</guid><dc:creator>aveldena</dc:creator><description>&lt;p&gt;thx&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of local variables...</title><link>https://community.appian.com/thread/76029?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 12:27:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e8bdb69-d44c-4f8f-b616-40d979346428</guid><dc:creator>aveldena</dc:creator><description>&lt;p&gt;thx. that was informative reading, but not an easy matter to understand...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of local variables...</title><link>https://community.appian.com/thread/76024?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 22:44:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f171e47-bf37-490c-86c4-4be94d0b2033</guid><dc:creator>burnera0001</dc:creator><description>&lt;p&gt;Why did you apologize for asking?&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/world.topo.200407.3x5400x2700.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of local variables...</title><link>https://community.appian.com/thread/76023?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 20:54:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4d2a8c1-dd14-402e-a2f9-bd70c11fd24b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;To add to the prior answer - local variables declared without specific overrides (provided within &lt;em&gt;a!refreshVariable()&lt;/em&gt;) are by default set to auto-refresh on (and &lt;strong&gt;ONLY&lt;/strong&gt; on) &amp;quot;referenced variable&amp;quot; update, i.e. an update to any variable value used in its definition.&lt;/p&gt;
&lt;p&gt;To wit, your initial local!locationsList would not auto-refresh under any circumstances (since it doesn&amp;#39;t refer to any external variables to determine its value), and therefore you can push manual changes to it externally (such as your append() operation) without worrying about those changes getting overwritten.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of local variables...</title><link>https://community.appian.com/thread/76022?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 20:30:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4dab64e0-da4a-4a88-b475-b75b457732f8</guid><dc:creator>alex.ladue</dc:creator><description>&lt;p&gt;Hello! I would recommend reading though this documentation page:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/20.2/Local_Variables.html"&gt;https://docs.appian.com/suite/help/20.2/Local_Variables.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Essentially, local variables values are set when the interface first loads. Variable values can either be updated by saving into them from a component or by setting a refresh configuration for the variables using a!refreshVariable&amp;nbsp;(see that documentation page for more details and examples)&lt;/p&gt;
&lt;p&gt;Hopefully that helps give a better picture of how local variables work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>