<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Null handing in workato in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/5950#M2615</link>
    <description>&lt;P&gt;Without code?&amp;nbsp; Probably not.&amp;nbsp; I assume you're doing this in a field?&amp;nbsp; You could do something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(completed_hours.presence || 0) &amp;gt; 0&amp;nbsp; or just (completed_hours || 0) &amp;gt; 0 might work.&lt;/P&gt;&lt;P&gt;Nulls are false, so "|| 0" will assign the second value, the zero.&lt;/P&gt;&lt;P&gt;A more verbose way of doing it:&amp;nbsp; (completed_hours.present? ? completed_hours : 0) &amp;gt; 0&lt;/P&gt;&lt;P&gt;Or a fun one:&amp;nbsp; [null, 0].exclude?(completed_hours).&amp;nbsp; 0 or null will be false, all others will be true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 20:02:58 GMT</pubDate>
    <dc:creator>Brian_S</dc:creator>
    <dc:date>2024-01-11T20:02:58Z</dc:date>
    <item>
      <title>Null handing in workato</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/5945#M2611</link>
      <description>&lt;P&gt;Hi Members,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing a scenario where errors occur in fields of integer, number, and datetime types when they meet a specific condition, especially when no value is assigned.&lt;BR /&gt;&lt;BR /&gt;For instance, an error is triggered when the condition "completed_hours greater than 0" is met with a null value for 'completed_hours', resulting in the message: "&lt;STRONG&gt;Error calculating input for field 'condition': (missing field value) greater than 0.&lt;/STRONG&gt;" However, this can be resolved by putting&amp;nbsp; 'completed_hours' not null check before applying the comparison. However, this introduces additional code, and when dealing with multiple fields, it becomes time-consuming to write such code.&lt;/P&gt;&lt;P&gt;Is there a built-in feature in workato that automatically handles these checks and comparisons without the need for extra code assume that if null being passed it fails the condition expect result:&amp;nbsp;&lt;BR /&gt;"completed_hours greater than 0" -- true if&amp;nbsp;completed_hours is 9&amp;nbsp;&lt;BR /&gt;"completed_hours greater than 0" -- false if&amp;nbsp;completed_hours is 0&lt;BR /&gt;"completed_hours greater than 0" -- false if&amp;nbsp;completed_hours is null&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tilak Bhatia.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 13:48:48 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/5945#M2611</guid>
      <dc:creator>TilakBhatia</dc:creator>
      <dc:date>2024-01-11T13:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Null handing in workato</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/5946#M2612</link>
      <description>&lt;P&gt;I don't have a solution for you, but I think this is really about "null handling in programming."&lt;/P&gt;&lt;P&gt;If you're only testing the variable once, then it is what it is -- you need to handle the null. But in situations where I have to test the variable multiple times throughout a recipe or script, I will normalize it first in another variable so I don't need to repeat the presence check/null handling over and over.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably not super helpful, but that's all I got! Maybe someone else will have a better suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:25:21 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/5946#M2612</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-01-11T17:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Null handing in workato</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/5950#M2615</link>
      <description>&lt;P&gt;Without code?&amp;nbsp; Probably not.&amp;nbsp; I assume you're doing this in a field?&amp;nbsp; You could do something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(completed_hours.presence || 0) &amp;gt; 0&amp;nbsp; or just (completed_hours || 0) &amp;gt; 0 might work.&lt;/P&gt;&lt;P&gt;Nulls are false, so "|| 0" will assign the second value, the zero.&lt;/P&gt;&lt;P&gt;A more verbose way of doing it:&amp;nbsp; (completed_hours.present? ? completed_hours : 0) &amp;gt; 0&lt;/P&gt;&lt;P&gt;Or a fun one:&amp;nbsp; [null, 0].exclude?(completed_hours).&amp;nbsp; 0 or null will be false, all others will be true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 20:02:58 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/5950#M2615</guid>
      <dc:creator>Brian_S</dc:creator>
      <dc:date>2024-01-11T20:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Null handing in workato</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/6008#M2640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/4461"&gt;@brian&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found the solution of the above problem. You can refer the link&amp;nbsp;&lt;A href="https://www.workato.com/product-hub/how-to-handle-nulls-2/" target="_blank"&gt;https://www.workato.com/product-hub/how-to-handle-nulls-2/&lt;/A&gt;&amp;nbsp;for future references.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tilak Bhatia&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 13:21:29 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/6008#M2640</guid>
      <dc:creator>TilakBhatia</dc:creator>
      <dc:date>2024-01-22T13:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Null handing in workato</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/6010#M2641</link>
      <description>&lt;P&gt;Thank you for sharing! I remember seeing this years ago and had completely forgotten about it.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 17:09:42 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/null-handing-in-workato/m-p/6010#M2641</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-01-22T17:09:42Z</dc:date>
    </item>
  </channel>
</rss>

