Continue

From ZDoom Wiki
Jump to: navigation, search
continue;

Usage

continue is used in a for, do, or while loop to end the current iteration, returning to the start of the loop.


Examples

This script ignores any players that autoaim, and logs who doesn't.

for (int i = 0; i < 8; i++)
{
   if (GetPlayerInfo (i, PLAYERINFO_AIMDIST) > 0 )
      continue;

   Log (n:i+1, s:"\c- does not autoaim");
}