cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

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