Exit loop based on array condition

Read this


TestCond = C > Ref(C,-1);
Start = 25;
End = 50;

for (x = Start; x < End; x = x+5)
{
// ... (additional code)

    if (TestCond[x])
    break;
}