cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
] />

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