<?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 use 'IF' statements to delete the entire 'Row'? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319889#M57023</link>
    <description>This is an example of the a data table to my problem Operation Product Link Quantity 1 A ABC 1000 1 A ABC 3000 1 A 1350 1 A 1235</description>
    <pubDate>Fri, 09 Oct 2020 21:46:53 GMT</pubDate>
    <dc:creator>Danial</dc:creator>
    <dc:date>2020-10-09T21:46:53Z</dc:date>
    <item>
      <title>How to use 'IF' statements to delete the entire 'Row'?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319870#M57022</link>
      <description>How to delete the entire 'Row' when the cell is blank/empty ?</description>
      <pubDate>Fri, 09 Jun 2023 23:40:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319870#M57022</guid>
      <dc:creator>Danial</dc:creator>
      <dc:date>2023-06-09T23:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 'IF' statements to delete the entire 'Row'?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319889#M57023</link>
      <description>This is an example of the a data table to my problem Operation Product Link Quantity 1 A ABC 1000 1 A ABC 3000 1 A 1350 1 A 1235</description>
      <pubDate>Fri, 09 Oct 2020 21:46:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319889#M57023</guid>
      <dc:creator>Danial</dc:creator>
      <dc:date>2020-10-09T21:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 'IF' statements to delete the entire 'Row'?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319911#M57027</link>
      <description>&lt;P&gt;There is no need to use an IF() clause in the deleting of the rows with missing values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// If checking for a character column
dt &amp;lt;&amp;lt; delete rows(dt&amp;lt;&amp;lt;get rows where(:link==""));

// If checking for a numeric column
dt &amp;lt;&amp;lt; delete rows(dt&amp;lt;&amp;lt;get rows where(isMissing(:Quantity)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Oct 2020 01:53:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319911#M57027</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-10T01:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 'IF' statements to delete the entire 'Row'?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319913#M57029</link>
      <description>&lt;P&gt;YEAH, I agree with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;, if you really wanna do this by using if, you can do like below&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$sample_data/big class.jmp" );

total_rows = N Row( dt );

For( i = total_rows, i &amp;gt;= 1, i--,
	If( :age[i] == 14,
		dt &amp;lt;&amp;lt; delete rows( i );
		wait(0.5) // wait for a while to let you see the delete action
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Oct 2020 03:04:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319913#M57029</guid>
      <dc:creator>JLX</dc:creator>
      <dc:date>2020-10-10T03:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 'IF' statements to delete the entire 'Row'?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319918#M57031</link>
      <description>&lt;P&gt;or you can do this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$sample_data/big class.jmp" );

dt &amp;lt;&amp;lt; Select Where(Is Missing(:column_you_want_to_check));
dt &amp;lt;&amp;lt; Delete Rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Oct 2020 05:07:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319918#M57031</guid>
      <dc:creator>ThuongLe</dc:creator>
      <dc:date>2020-10-10T05:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 'IF' statements to delete the entire 'Row'?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319944#M57037</link>
      <description>&lt;P&gt;Thank you so much. Thanks for clearing things up&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 13:42:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-IF-statements-to-delete-the-entire-Row/m-p/319944#M57037</guid>
      <dc:creator>Danial</dc:creator>
      <dc:date>2020-10-10T13:42:54Z</dc:date>
    </item>
  </channel>
</rss>

