<?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>Need Help With Appian Code</title><link>https://community.appian.com/discussions/f/process/39752/need-help-with-appian-code</link><description>I have an XOR and i need to loop through the following data and pull out customer name and evaluate each decision point based on the customer name: 
 here is the data: 
 [{&amp;quot;dateReceived&amp;quot;:{&amp;quot;value&amp;quot;:&amp;quot;2025-02-10Z&amp;quot;,&amp;quot;spanId&amp;quot;:&amp;quot;342b49c8&amp;quot;},&amp;quot;dateOfInjury&amp;quot;:{&amp;quot;value</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need Help With Appian Code</title><link>https://community.appian.com/thread/151674?ContentTypeID=1</link><pubDate>Sun, 21 Sep 2025 06:10:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b721d36e-53d2-45a0-910e-31991d690a10</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;As i can see,&amp;nbsp;Your current conditions evaluate All records at once, not individually. Both conditions will return true because your data contains both State Fund and Travelers customers.&lt;br /&gt;You need to evaluate each record individually in the XOR, not the entire array.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help With Appian Code</title><link>https://community.appian.com/thread/151673?ContentTypeID=1</link><pubDate>Sat, 20 Sep 2025 21:37:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a65b596f-9967-4b6c-8c4e-71269e530f74</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Too complicated, try using an expression rule in this case....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help With Appian Code</title><link>https://community.appian.com/thread/151666?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 19:23:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f80fc839-4130-4be1-90a3-3f0811365f77</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is the sort of thing where I recommend writing it as an Expression Rule (where you&amp;#39;re able to set up any test data set you want with trivial ease) and then call the expression rule from your process model (especially in an XOR node, since code entered there will be flattened to 1 line upon saving).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as your logic, I&amp;#39;m a little fuzzy on what you&amp;#39;re asking for but as usual, it should be plenty doable to iterate over a list using a!forEach() and to check that each member of the list satisfies your conditions, etc.&amp;nbsp; And doing this in an expression rule, of course, makes this very easy to test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>