cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
WebDesignesCrow
Super User

How to select & delete rows when the cell did not start with W

Hello,

I have a table with 2 columns (Process & MC)

I want to select and delete rows that fulfill 2 conditions below using scripting ;

1. Column Process = WB

2. Column MC = does not start with "W"

I've checked through the scripting help but couldn't find anything useful.

 

If I use below script, it will delete all rows that MC column cells starts with "W"  which is not what I want. 

dt3 << select where(:Process == "WB") & Starts With(:MC, "W") << delete rows ;

I'm using JMP 15.

Any idea how to do it?

1 REPLY 1
jthi
Super User

Re: How to select & delete rows when the cell did not start with W

You are were close. Just combine both conditions inside Select Where and it should work

dt3 << select where(:Process == "WB" & Starts With(:MC, "W")) << delete rows ;
-Jarmo

Recommended Articles