Loop Through and Delete Items

Solved4.21K viewsScripting
0

In scripting, I need to know the syntax to delete items where a cell value is not equal to a specified value.  For example:

In the screen shot I want to loop through each “Use” entry and  remove from Matrix 1 via a script the items in category B that have a “Use” not equal to “YES”.

Selected answer as best
0

Sorry for the late reply, perhaps a little more readable:

 

|Matrix1::B|.items.each()

{

if(it.value == “NO”)

{

it.delete()

}

}

Selected answer as best
You are viewing 1 out of 2 answers, click here to view all answers.