The example code below may give some ideas (the Wait(1) commands are only for demo purpose);
dt = New Table("demo", New Column("X", character, values({"a", "b", "c", "d", "q", "a", "b", "c", "d"})));
my_list = {"a", "c", "q"};
Wait(1);
dt << select where(Contains(my_list, :X));// Select all items in my_list
Wait(1);
dt << select where(Contains(my_list[1 :: 2], :X));//By default need to clear before making another selection
Wait(1);
dt << invert row selection; // Invert selection
Wait(1);
dt << clear select;// Clear selection