@YounesGa To have each thread use only 1 line, set the value "max success usage: 1", "max number of simultaneous use: 1".
This is equivalent to the fact that after the flow finishes running with a result of Success, the already used proxy line will not be used again, whereas if there is an error, it will be reused 999999999 times and only one line. for each stream
290a12f6-98cf-4378-9d4c-72a246339adb-image.png
How to do this? Do list search, if first 5 numbers are less than 4 does it call a function.
-
@ivdkop Выполнить код
function check(data,threshold,step){ var flag = false; if(data.length-1<step){ return flag; } var counter = 0; for(var i=0; i<threshold; i++){ if(data[i] >= threshold){ counter++; } } if(counter==step){ flag = true; } return flag; } var data = [5 , 5, 7, 7, 10, 9, 6, 8, 0, 1] [[FLAG]] = check(data,5,5)
-
If you want to search for the first 5 numbers, just separate the first 5 numbers, then do the comparison, then draw a conclusion.
-
@Melinda I told you here.
You won't understand @ivdkop way of doing things
Simplified and easy to understand, just use specific actions in BAS.
TEST 1.xml