Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

break

From Quake Wiki

void break()

Usage[edit]

Breaks out of a loop similar to the standard break keyword in other programming languages. This is largely deprecated in favor of using break as a keyword in modern QuakeC compilers.

Example[edit]

for (float i = 0; i < cap; ++i)
{
    PerformFirstTask();

    // If the entity died in the first task, exit the loop early
    if (self.health <= 0)
        break;

    PerformSecondTask();
}