Consecutive Integer Check in Array Indices?

Is there a way to create constraints or condition sets that can tell if the two highest indices in an array are consecutive integers?

Example:

[1] Wait
[2] Constraint check passed
[5] Constraint check failed

(Yes, that had me thinking of Monty Python, too.)
 

MacroDroidDev

Administrator
Staff member
Something like the following.

Actions:

Iterate array:
set variable previousIndex = index
set variable index = {iterator_array_index}
End Iterator

If (index == previousIndex + 1)
== DO STUFF ==
Endif
 
Top