I have this in my code:
for(each player)
{
for(each packet of this player)
{
switch(packet_id)
{
case PACKET_TYPE:
{
if(someething is wrong)
{
skip this player iteration and go on with next player
}
}break;
}
}
}
There are Two 'FOR' and one 'SWITCH'
How do i escape from the current PLAYER iteration, jumping to another player, from within the switch statements?
- A break will cause 'case' to break;
- A continue; will cause next packet to be iterated
- .. ?