<?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: AND/OR statements in Formula Editor in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/AND-OR-statements-in-Formula-Editor/m-p/400299#M65142</link>
    <description>&lt;P&gt;That works perfectly!! &amp;nbsp;Thank you so much, Txnelson!! &amp;nbsp;I greatly appreciate your help!!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 14:43:27 GMT</pubDate>
    <dc:creator>EH1</dc:creator>
    <dc:date>2021-07-12T14:43:27Z</dc:date>
    <item>
      <title>AND/OR statements in Formula Editor</title>
      <link>https://community.jmp.com/t5/Discussions/AND-OR-statements-in-Formula-Editor/m-p/400278#M65140</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping someone could help me with a formula containing AND/OR statements. &amp;nbsp;I have written a formula in "Column 5" based on the results of 3 other columns: Run F, Run M, and Run S. &amp;nbsp;The portions of the formula that only contain IF/THEN statements produce the desired results. &amp;nbsp;However, the portions of the formula that also contain AND/OR statements do not work (non-working portions of the formula are circled in RED in the attached screen shot). &amp;nbsp;The JMP file is also attached below. &amp;nbsp;Can anyone please help on what I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-07-12 at 10.06.06 AM.png" style="width: 416px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34108i6A007C7C3B5A3C70/image-dimensions/416x345?v=v2" width="416" height="345" role="button" title="Screen Shot 2021-07-12 at 10.06.06 AM.png" alt="Screen Shot 2021-07-12 at 10.06.06 AM.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:45:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/AND-OR-statements-in-Formula-Editor/m-p/400278#M65140</guid>
      <dc:creator>EH1</dc:creator>
      <dc:date>2023-06-10T20:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: AND/OR statements in Formula Editor</title>
      <link>https://community.jmp.com/t5/Discussions/AND-OR-statements-in-Formula-Editor/m-p/400292#M65141</link>
      <description>&lt;P&gt;Try this form and see if the logic works correctly&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	:Run F == 1 | :Run M == 1, "Leave",
	:Run F == 2, "Keep",
	:Run F == 3, "Upscale",
	(:Run F == 4 | :Run F == 5) &amp;amp; (:Run S == 1 | :Run S == 2), "Fix",
	(:Run F == 4 | :Run F == 5) &amp;amp; (:Run S == 3 | :Run S == 4), "Encode",
	:Run M == 2, "Upscale",
	:Run M == 3 &amp;amp; (:Run S == 1 | :Run S == 2), "Fix",
	:Run M == 3 &amp;amp; (:Run S == 3 | :Run S == 4), "Encode"
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jul 2021 14:36:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/AND-OR-statements-in-Formula-Editor/m-p/400292#M65141</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-12T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: AND/OR statements in Formula Editor</title>
      <link>https://community.jmp.com/t5/Discussions/AND-OR-statements-in-Formula-Editor/m-p/400299#M65142</link>
      <description>&lt;P&gt;That works perfectly!! &amp;nbsp;Thank you so much, Txnelson!! &amp;nbsp;I greatly appreciate your help!!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 14:43:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/AND-OR-statements-in-Formula-Editor/m-p/400299#M65142</guid>
      <dc:creator>EH1</dc:creator>
      <dc:date>2021-07-12T14:43:27Z</dc:date>
    </item>
  </channel>
</rss>

