Type Statement
Format break [label]; label used if statement is not a loop or switch
Commentary
Creates a conditionally based break from a looped routine. If a given condition is met , breaks the loop and continues executing any remaining code following after the break statement. The other command that breaks from a current loop is continue.
Sample code - QC 2 JavaScript
for (i = 0; i <10; i ++)
{ (
outputs [0] = i;
f (i == 2) break;
} )
Sample code - QC 3 JavaScript
function (__number boolOutput) main (__number i, __number j)
{
if(i > j)
if (j == 3) break;
var result = new Object();
result.boolOutput = j;
return result;
}