I'm working on a script that looks at two array numbers and if they are nonsequential, I want to pop that value out of the array. I'm having trouble with this, because if the initial entry is the one that is out of sequence, then all subsequent values would be pop'd. Anyone have a quick function that might do the trick?
Will the numbers in the Array be increasing or decreasing or will that have to be determined beforehand, too?
Numbers will be decreasing in sequence. Need to ensure it's just numbers in a sequential group, not set to a fixed length.