Divide actions into 3 threads or make them run one after another.
There is an action in the BAS that checks which thread is currently running.
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