Anyway to exit the "for each" loop prematurely? I do it from my gf all the time.
I'm curious if there is a way to exit a "for each" loop before cycling through all elements. For example:
records1 = conditions[active == true];
records2 = valid_codes[active == true];
for each r1 in records1
{
for each r2 in records2
{
if (r1.code == r2.code)
{
input.code = r1.code;
break;
-OR-
records2 = patients[true == false];
}
}
}