Jump to content
Sign in to follow this  
killouze

Deletes array in array

Recommended Posts

Hello, is it possible to delete a array in array?

Example :

array1 = [["text1",1],["text2",2],["text3",3]];

array1 = array1 - [["text2",2]] does not work..

Share this post


Link to post
Share on other sites

Simple solution:

array1 set [1, ">REMOVE<"];
array1 = array1 - [">REMOVE<"];

Share this post


Link to post
Share on other sites

I'm pretty sure there is a BIS function (in Functions Module) that removes elements from a nested array. Check that out, might be similar to Deadfast's solution, but worth looking into.

Share this post


Link to post
Share on other sites

Thank you for the answers.

The Deadfast solution works well ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×