How to get item by condition of multi list

I have 2 list:
list 1 = [1,3,5,6,7,9]
list 2 = [20,23,24,25,28,30];
Please show me how to get [5,6,7] in list 1 and [23,24,25] in list 2 by multi condition
{because 0<(6-5) <=1); 0<(7-6) <=1; 0<(24-23) <=1; 0<(25-24) <=1}

my understanding is you want to get [5 to 7] and [23 to 25] from every list . is that right?

1 Like

@manhgt214 See if this helps:Diff.dyn (8.0 KB)

1 Like

@manhgt214 Or something on these lines if you want to use the OOTB nodes: Diff.dyn (22.4 KB)

1 Like

Thank you very much!!! <3

I want pick element in Revit based distance of Z Elevation. Solved!!

1 Like

Thank you so much!