Difference between L1 L2 in a simpler way?

I need the difference between quantity L1 and L2


set L1 to {1, 2, 3, 4, 5, 6, 7, 8, 9}
set L2 to {1, 2, 3, 4, 5, 6, 9}
set L3 to {}
repeat with nbr in L1
     if nbr is not in L2 then
         set the end of L3 to nbr
    end if
end repeat
choose from list L3 --Contain the Differense L1/L2 = {7,8}

Applescript seems to have close to infinit number of keywords :wink: so is there a nicer way of doing this?

Hi jjabba,

Too bad many of the keywords do the same thing. :smiley:

Late Night Sofware’s “List & Record Tools” osax will do that in one step:

set {L1, L2} to {{1, 2, 3, 4, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 5, 6, 9}}
choose from list difference of L2 and L1

Exactly what I’m looking for, thanks!