Assuming I have an associative array with n key/value pairs.
While looping through, I want to know the Key/value pair of the next element in the array.
Something like ...:
Code: Select all
for k, v in myArray
{
if (k = "ABC")
msgbox % myArrayNextKey
}
I know I can use a flag, do Continue and check the flag on next loop.
But I think (or hope) there is a better way.
Any help welcome.