$list except

Allows you to get the difference between two lists.


Example

Running this code will add texts to the following:

  • %List1 - 0,a,b,c,d,e,1,2,3
  • %List2 - a,b,c,d,e

The texts from List Except "%List2" will be removed in "%List1". Therefore, 0, 1, 2 3 will be shown in the alert dialog box.

This is shown in the alert box.

This is shown in the Debugger.

add list to list(%List1,$list from text("0,a,b,c,d,e,1,2,3",","),"Delete","Global")
add list to list(%List2,$list from text("a,b,c,d,e",","),"Delete","Global")
alert($plugin function("Data and Files Automation.dll", "$list except", %List1, %List2))

Was this helpful?

Previous Article

$list concat

Next Article

$list filter