$list remove

Allows you to remove a specified item from a list.


Example

Running this code will put the letters "a b c d e f g h" into a list named "%test".

Then, running this code will create a list named "%OutList", that includes the text in "%test", removing "a" in the list.

add item to list(%test,"a","Delete","Global")
add item to list(%test,"b","Delete","Global")
add item to list(%test,"c","Delete","Global")
add item to list(%test,"d","Delete","Global")
add item to list(%test,"e","Delete","Global")
add item to list(%test,"f","Delete","Global")
add item to list(%test,"g","Delete","Global")
add item to list(%test,"h","Delete","Global")
add list to list(%OutList,$plugin function("Data and Files Automation.dll", "$list remove", %test, "a", "Equals"),"Delete","Global")

Was this helpful?

Previous Article

$list random

Next Article

$list remove at