Sure no problem.
I'm looping through my list and find 3 items (also lists):
Listitem 1: [3]
check if "3" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
3 > 6000 ? no
3 > 3000 ? no
3 > 0 ? yes, return [0]
Listitem 2: [4:400]
check if "4" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
4 > 6000 ? no
4 > 3000 ? no
4 > 0 ? yes, return 0
check if "400" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
400 > 6000 ? no
400 > 3000 ? no
400 > 0 ? yes, return 0
These two items combined as returned value [0, 0]
Listitem 3: [3:4222]
check if "3" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
3 > 6000 ? no
3 > 3000 ? no
3 > 0 ? yes, return 0
check if "4222" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
4222 > 6000 ? no
4222 > 3000 ? yes, return 3000
don't test the rest, I'm satisfied with this result.
These two items combined as returned value [0, 3000]
Combined return should be a list therefor: [ [0], [0, 0], [0, 3000] ]
I'm looping through my list and find 3 items (also lists):
Listitem 1: [3]
check if "3" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
3 > 6000 ? no
3 > 3000 ? no
3 > 0 ? yes, return [0]
Listitem 2: [4:400]
check if "4" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
4 > 6000 ? no
4 > 3000 ? no
4 > 0 ? yes, return 0
check if "400" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
400 > 6000 ? no
400 > 3000 ? no
400 > 0 ? yes, return 0
These two items combined as returned value [0, 0]
Listitem 3: [3:4222]
check if "3" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
3 > 6000 ? no
3 > 3000 ? no
3 > 0 ? yes, return 0
check if "4222" is larger than a value in list [0,3000,6000]. If it's larger: return that compared value.
4222 > 6000 ? no
4222 > 3000 ? yes, return 3000
don't test the rest, I'm satisfied with this result.
These two items combined as returned value [0, 3000]
Combined return should be a list therefor: [ [0], [0, 0], [0, 3000] ]