cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to move from signal modeling to system modeling at the first JMP Aerospace Analytics webinar. Register. June 18, 1 p.m. 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