<?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: How to get rows with more than one condition? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-rows-with-more-than-one-condition/m-p/525829#M75023</link>
    <description>&lt;P&gt;The relevant logical operators in JSL are &amp;amp; for AND, | for OR, and ! for NOT.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 15:47:21 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2022-07-25T15:47:21Z</dc:date>
    <item>
      <title>How to get rows with more than one condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-rows-with-more-than-one-condition/m-p/525602#M75006</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to get rows with more than one condition as so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
r = dt &amp;lt;&amp;lt; Get Rows Where( :sex == "F", :name == "ROBERT", :name != "MARK" );
Show( r );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But what I'm getting is only rows where : sex == "F",&lt;/P&gt;
&lt;P&gt;Is there any way to get all rows that are :name == "ROBERT", and also rows that are :name != "MARK"&amp;nbsp; i.e. the :name rows where it is not "MARK"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:51:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-rows-with-more-than-one-condition/m-p/525602#M75006</guid>
      <dc:creator>PowerOx327</dc:creator>
      <dc:date>2023-06-10T23:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rows with more than one condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-rows-with-more-than-one-condition/m-p/525617#M75007</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have you tried to build your condition as a logic statement (see below)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
r = dt &amp;lt;&amp;lt; Get Rows Where( :sex == "F" | (:name == "ROBERT" | :name != "MARK" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should return all the rows with Female, Roberts, or NOT Mark.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 07:25:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-rows-with-more-than-one-condition/m-p/525617#M75007</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2022-07-25T07:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rows with more than one condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-rows-with-more-than-one-condition/m-p/525829#M75023</link>
      <description>&lt;P&gt;The relevant logical operators in JSL are &amp;amp; for AND, | for OR, and ! for NOT.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 15:47:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-rows-with-more-than-one-condition/m-p/525829#M75023</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2022-07-25T15:47:21Z</dc:date>
    </item>
  </channel>
</rss>

