There is no need to use an IF() clause in the deleting of the rows with missing values.
// If checking for a character column dt << delete rows(dt<<get rows where(:link=="")); // If checking for a numeric column dt << delete rows(dt<<get rows where(isMissing(:Quantity)));
YEAH, I agree with @txnelson , if you really wanna do this by using if, you can do like below
Names Default To Here( 1 ); dt = Open( "$sample_data/big class.jmp" ); total_rows = N Row( dt ); For( i = total_rows, i >= 1, i--, If( :age[i] == 14, dt << delete rows( i ); wait(0.5) // wait for a while to let you see the delete action ) );
or you can do this:
Names Default To Here( 1 ); dt = Open( "$sample_data/big class.jmp" ); dt << Select Where(Is Missing(:column_you_want_to_check)); dt << Delete Rows;
Thank you so much. Thanks for clearing things up