How does the for loop respond too "continue", "break" and "return" ?
If i want to stop looping and jump to the code after the loop after some condition is satisfied which one should i use.
Example:
PHP Code:
public myfunc(id)
{
for(new i = 1; i <= max_players; i++)
{
if(some condition that was satisfied)
{
want to stop looping
return/continue/break ?
}
}
Still want to execute this code(id)
{
}
}
If i want to jump to the next loop in the same condition then which one ?
Similarly if i want to just return the value and stop executing the ENTIRE function then ?
__________________