There was one mistake in my example and I understood incorrectly what you were looking for. This is most likely closer to what you are looking for
Names Default To Here(1);
dt = New Table("Untitled",
Add Rows(1),
Compress File When Saved(1),
New Column("Column 1",
Expression,
"None",
Set Values({{"aa", "bb", "dd"}, {"bb", "2", "cc"}})
)
);
mylist = {"aa", "bb", "cc"};
dt << New Column("res", Expression, "None");
For Each Row(
dt,
rowresult = Transform Each({item}, :Column 1[Row()],
If(Contains(mylist, item),
"1"
,
item
)
);
:res = rowresult;
);
-Jarmo