Hi,
I remember there were some useful posts to find the positions in an array
satisfying defined conditions.
Another approach is attached.
Array_Pos2.sm (15.2 KiB) downloaded 664 time(s).
Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka