I would like to count the number of consecutive values >=2 in a row.
Eg:-
1 2 3 2 3 2 2 2 2 1 1 1 3 3 2 2 1 1
The returned value would be 8, because the 2nd to the 9th figure are all greater or equal to 2
OR
1 2 3 1 2 1 3 2 1 3 2 3 4 3 1 2 3 1
The returned value would be 5, because the 10th to the 14th figure are all greater or equal to 2
Bookmarks