<?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 How to use IF / AND condition with logical OR formula in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-if-and-condition-with-logical-or-formula/m-p/6713#M2913</link>
    <description>&lt;P&gt;Hi, I'd like to test IF variable a is equal to something AND variable b is either equal to value 1 OR value 2.&lt;/P&gt;&lt;P&gt;I've set up the IF condition similar to below, but can't seem to get the IF condition to evaluate true when variable b is equal to value 2. I can use a more drawn-out set of nested IFs, but I wondered if anyone can help me work out what I'm doing wrong?&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;U&gt;&lt;STRONG&gt;IF condition&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-20 131349.png" style="width: 391px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1264i189CCC41B615B022/image-dimensions/391x431/is-moderation-mode/true?v=v2" width="391" height="431" role="button" title="Screenshot 2024-05-20 131349.png" alt="Screenshot 2024-05-20 131349.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;U&gt;&lt;STRONG&gt;IF evaluates false when variable b is equal value 2&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-20 131034.png" style="width: 423px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1263i736C62909F201585/image-dimensions/423x286/is-moderation-mode/true?v=v2" width="423" height="286" role="button" title="Screenshot 2024-05-20 131034.png" alt="Screenshot 2024-05-20 131034.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dan.&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 12:26:10 GMT</pubDate>
    <dc:creator>DanM</dc:creator>
    <dc:date>2024-05-20T12:26:10Z</dc:date>
    <item>
      <title>How to use IF / AND condition with logical OR formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-if-and-condition-with-logical-or-formula/m-p/6713#M2913</link>
      <description>&lt;P&gt;Hi, I'd like to test IF variable a is equal to something AND variable b is either equal to value 1 OR value 2.&lt;/P&gt;&lt;P&gt;I've set up the IF condition similar to below, but can't seem to get the IF condition to evaluate true when variable b is equal to value 2. I can use a more drawn-out set of nested IFs, but I wondered if anyone can help me work out what I'm doing wrong?&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;U&gt;&lt;STRONG&gt;IF condition&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-20 131349.png" style="width: 391px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1264i189CCC41B615B022/image-dimensions/391x431/is-moderation-mode/true?v=v2" width="391" height="431" role="button" title="Screenshot 2024-05-20 131349.png" alt="Screenshot 2024-05-20 131349.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;U&gt;&lt;STRONG&gt;IF evaluates false when variable b is equal value 2&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-20 131034.png" style="width: 423px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1263i736C62909F201585/image-dimensions/423x286/is-moderation-mode/true?v=v2" width="423" height="286" role="button" title="Screenshot 2024-05-20 131034.png" alt="Screenshot 2024-05-20 131034.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dan.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 12:26:10 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-if-and-condition-with-logical-or-formula/m-p/6713#M2913</guid>
      <dc:creator>DanM</dc:creator>
      <dc:date>2024-05-20T12:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF / AND condition with logical OR formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-if-and-condition-with-logical-or-formula/m-p/6714#M2914</link>
      <description>&lt;P&gt;You can do it all in a single conditional like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;##IF variable a is equal to something AND variable b is either equal to value 1 OR value 2

variable_a == something &amp;amp;&amp;amp; (variable_b == value1 || variable_b == value2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 14:36:55 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-if-and-condition-with-logical-or-formula/m-p/6714#M2914</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-05-20T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF / AND condition with logical OR formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-if-and-condition-with-logical-or-formula/m-p/6715#M2915</link>
      <description>&lt;P&gt;Thanks Gary, that works perfectly!&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 14:45:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-if-and-condition-with-logical-or-formula/m-p/6715#M2915</guid>
      <dc:creator>DanM</dc:creator>
      <dc:date>2024-05-20T14:45:53Z</dc:date>
    </item>
  </channel>
</rss>

