Skip to content

goto

The goto keyword in Bjarne language is as same as the goto in the C language.

Syntax

goto Label;

Example Code

while (i < j)
{
    while (k < f)
    {
        while (u < x)
        {
            if (fuBar() == true)
            {
                goto Exit;
            }
        }
    }
}

Exit:
    // do work