is not in list
Posted: Mon Apr 13, 2015 7:54 pm
I have been using this to compare two lists of numbers
later in the code it removes it from a database but thats not important for my question.
The problem is that if for example tLine is 1005 and in tContents there is a 131005 then it wont get removed. I was thinking I can maybe compare both lists to each other from both directions, but wanted to see here first if there was a solution already known before I make up my own bloated solution.
Code: Select all
if item 1 of tLine is not in tContents then
put item 1 of tLine into delPcmkThe problem is that if for example tLine is 1005 and in tContents there is a 131005 then it wont get removed. I was thinking I can maybe compare both lists to each other from both directions, but wanted to see here first if there was a solution already known before I make up my own bloated solution.