Přeskočit obsah

Native WHILE loop

Just like Ikarus zParserExtender implements a while loop.

var int value; value = 10;
while(value > 0)
{
    if (value == 8)
    {
        continue;
    };

    if (value == 2)
    {
        break;
    };
};

Note

To activate while it is necessary to set NativeWhile setting in SystemPack.ini

[ZPARSE_EXTENDER]
NativeWhile = true

Compiled while loop works in vanilla engine without the plugin.