<?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>Compare two version results and display in different sections</title><link>https://community.appian.com/discussions/f/rules/39924/compare-two-version-results-and-display-in-different-sections</link><description>Hi All, 
 In database table, i have one field called &amp;#39;versions&amp;#39; which will be captured from agent run. So when the agent runs, it will give some array of outputs for each version like below, 
 1st time run Output 
 {workId - 1, decision - need referal</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Compare two version results and display in different sections</title><link>https://community.appian.com/thread/152416?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2025 05:45:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e279b8f7-35cc-49e9-b8f6-92c1f56e0b26</guid><dc:creator>Jansi J</dc:creator><description>&lt;p&gt;Thanks Shubham, this logic works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare two version results and display in different sections</title><link>https://community.appian.com/thread/152415?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2025 04:54:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb340c62-f64e-43b7-82fe-777975500b27</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Section 1 (New Referral): workIds with &amp;quot;need referral&amp;quot; in 2nd run but not in 1st.&lt;br /&gt;Section 2 (Existing Referral Still Required): workIds with &amp;quot;need referral&amp;quot; in both runs.&lt;br /&gt;Section 3 (Existing Referral No longer Required): workIds with &amp;quot;no referral&amp;quot; in 2nd run but &amp;quot;need referral&amp;quot; in 1st.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>