<?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>How to write below logic in Appian</title><link>https://community.appian.com/discussions/f/general/20182/how-to-write-below-logic-in-appian</link><description>Can someone help: 
 
 CASE WHEN ISNULL(pr.[isDefunct], 0) = 1 THEN 0 WHEN ISNULL(pr.[isCancelled], 0) = 1 THEN 0 WHEN ISNULL(ab.IsEscorted, 0) = 0 THEN 0 WHEN bc.Movement &amp;lt;&amp;gt; &amp;#39;CR Movement&amp;#39; THEN 0 WHEN bc.LocationType &amp;lt;&amp;gt; &amp;#39;Bank&amp;#39; THEN 0 WHEN ISNULL(bc.DateTime</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to write below logic in Appian</title><link>https://community.appian.com/thread/78794?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 12:07:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aad5bdc4-55c8-4de4-8494-12f6b7b4f120</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;You could use a Decision object. This allows you to pass in multiple parameters and then apply the tests you have expressed in your WHEN statements. You can enforce strict order in a Decision (i.e. the first row that evaluates to true returns the result) and it also includes an ELSE which would fulfil your last requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>