<?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>Refresh condition of local variables and reduce()</title><link>https://community.appian.com/discussions/f/new-to-appian/39787/refresh-condition-of-local-variables-and-reduce</link><description>Hello all! I&amp;#39;ve just started an internship as a dev and am still picking up on Appian. 
 Currently, as part of a feature I&amp;#39;m developing, I&amp;#39;ve implemented an algorithm to produce a list of dates, each with consistent interval. To simplify things, I first</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Refresh condition of local variables and reduce()</title><link>https://community.appian.com/thread/151786?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 09:38:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39c6bfbb-1fc0-4209-90a1-f9df2fa97efe</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&lt;span&gt;reduce() in interfaces can&amp;#39;t handle default refresh behavior.&lt;br /&gt;Declare all local variables inside reduce() with a!refreshVariable(refreshAlways: true) or switch to forEach() which supports default refresh behavior.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh condition of local variables and reduce()</title><link>https://community.appian.com/thread/151783?ContentTypeID=1</link><pubDate>Sat, 27 Sep 2025 12:28:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:342cd4d7-92cc-4c11-a261-275fe79dc388</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;As mentioned in error try using a!foreach() instead of refresh variables for each date in your list. If you need to iterate through a list looping functions are better to dynamically work on each item.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh condition of local variables and reduce()</title><link>https://community.appian.com/thread/151779?ContentTypeID=1</link><pubDate>Fri, 26 Sep 2025 20:31:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4d5dbe9-0dc9-433e-a959-ff1514ffdb13</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Any chance you can share a code snippet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>