cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
SpannerHead
Level VI

Easiest way to find out if something exists in a list.

I have a script that creates an embedded program in a data table.  I'm able to list the embedded programs already present and I want to be able to avoid creating it if it already exists.  What's the easiest way to check the lust for the existance of the program?

dt = Current Data Table();

lstScripts = dt << Get Table Script Names;

Slán



SpannerHead
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Easiest way to find out if something exists in a list.

Contains() is easiest way to check if list already contains an item.

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: Easiest way to find out if something exists in a list.

Contains() is easiest way to check if list already contains an item.

-Jarmo

Recommended Articles