I recently ran into a situation where I needed to compare values inside two associative arrays. I ended up having to nest two different loops, but wanted to optimize performance by breaking the inner loop when I found what I was looking for. A bit of searching, and I found what I was looking for… Loop Labels. They’re really easy to do and understand, so here’s a simple loop label example, and what the console debug output looks like:
Comments