Android Question [SOLVED] How to check if a number is in right increasing order

mcqueccu

Well-Known Member
Licensed User
Longtime User
Hi, I need help checking if a number is in the right increasing order. If anyone is a having a function to do this, kindly share
Edit: Increasing order and follow each other

B4X:
'increasing right order
1,2,3,4,5
45,46,47,48

'Not Increasing in order
1,2,5,6,7 ''<- because 3,4 are missing


My values will be coming from a list like the one below, which I will sort first
B4X:
    Dim mList As List = Array(1, 5,3,10,16,43)
    mList.Sort(True)
    Log(mList)
 
Top