continue:
Code:
// this loop will skip over the iteration if x is equal to 6
for( new x = 1; x < 9; x++ )
{
if( x == 6 )
continue;
// code
// x will never equal 6 in this loop, since we skip over it at the beginning
}
return PLUGIN_HANDLED:
Code:
/* this loop will end the function and return 1 (PLUGIN_HANDLED)
when x is equal to 6 */
for( new x = 1; x < 9; x++ )
{
if( x == 6 )
return PLUGIN_HANDLED;
// code
// x will never equal anything above 5 in this loop
// which is kind of unnecessary, since you can just change the condition to x < 6
}
__________________