<?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: &amp;quot;If&amp;quot; type formula in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1122#M533</link>
    <description>&lt;P&gt;You can write it in english too:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if [pill].present?&lt;/P&gt;&lt;P&gt;"resultifTrue"&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;"resultifFalse"&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I find it helpful to have it be descriptive if I'm sharing the recipes with other teams.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 03:11:56 GMT</pubDate>
    <dc:creator>glen-nicholas1</dc:creator>
    <dc:date>2021-06-11T03:11:56Z</dc:date>
    <item>
      <title>"If" type formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1116#M527</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Is there a way to create a formula that uses .present? on a string and then inserts one of two options into the field? Seems like there is a way to do it, but I'm having issues with the syntax. The specific use case is as follows:&lt;/P&gt;&lt;P&gt;[datapill1].present?&lt;/P&gt;&lt;P&gt;{"true": [datapill1].gsub(_([datapill1]).split(';').first()+"; ","")}&lt;/P&gt;&lt;P&gt;{"false": nil}&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 00:12:17 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1116#M527</guid>
      <dc:creator>dan-lowry</dc:creator>
      <dc:date>2021-06-11T00:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: "If" type formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1117#M528</link>
      <description>&lt;P&gt;[datapill1].present? ? ([datapill1].gsub(_([datapill1]).split(';').first()+"; ","")) : null&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Sometimes I want the result to be an empty string instead of nil - in that case, I do this:&lt;/P&gt;&lt;P&gt;[[datapill1],''].compact[0]&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 00:16:52 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1117#M528</guid>
      <dc:creator>ajorde</dc:creator>
      <dc:date>2021-06-11T00:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: "If" type formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1118#M529</link>
      <description>&lt;P&gt;you can use something like this &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2021 00:18:19 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1118#M529</guid>
      <dc:creator>vijay-narsimha</dc:creator>
      <dc:date>2021-06-11T00:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: "If" type formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1119#M530</link>
      <description>&lt;P&gt;=_('data.logger.3dcdc175.message').present?? (_('data.logger.3dcdc175.message').gsub("dr","").split(";").first() + "; " + "") : nil&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2021 00:37:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1119#M530</guid>
      <dc:creator>bala-s</dc:creator>
      <dc:date>2021-06-11T00:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: "If" type formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1120#M531</link>
      <description>&lt;P&gt;Thanks for all the responses! I knew I was missing something and that second ?  fixed it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 00:42:40 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1120#M531</guid>
      <dc:creator>dan-lowry</dc:creator>
      <dc:date>2021-06-11T00:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: "If" type formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1121#M532</link>
      <description>&lt;P&gt;The "ifCondition ? resultIfTrue : resultIfFalse" syntax is called a ternary expression in case that helps your research/understanding. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 02:57:02 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1121#M532</guid>
      <dc:creator>georgiaria</dc:creator>
      <dc:date>2021-06-11T02:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: "If" type formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1122#M533</link>
      <description>&lt;P&gt;You can write it in english too:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if [pill].present?&lt;/P&gt;&lt;P&gt;"resultifTrue"&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;"resultifFalse"&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I find it helpful to have it be descriptive if I'm sharing the recipes with other teams.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 03:11:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-if-quot-type-formula/m-p/1122#M533</guid>
      <dc:creator>glen-nicholas1</dc:creator>
      <dc:date>2021-06-11T03:11:56Z</dc:date>
    </item>
  </channel>
</rss>

