Break - statement is only available in SWITCH, not in IF, FOR, WHILE, DO.
Is this the right behavior?
Dieter
Break - statement is only available in SWITCH, not in IF, FOR, WHILE, DO.
Is this the right behavior?
Dieter
var x = "";
for(var i=0 ; i<10 ; i++)
{
if(i==5)
{
break;
}
x += i;
}
result:
x=01234
should work!
But for:
if ( utils.stringToNumber(timepick_ab) < 10 )
{
break;
}
it doesnM-4t work.
Dieter
Sorry, IM-4ve found my mistake.
I have placed the break in an IF statement outside of the For.
thanks
Dieter