Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 5.45 Transition from function to global label outside function

Страниц (1): [1]
 

1. Kibor - 24 Октября, 2018 - 11:09:44 - перейти к сообщению
Added the ability to exit a function using the goto command to a label outside the function. Deviation from the rules, but sometimes it can be very convenient when you have to leave the nested functions in a certain place of the general code.

The operator goto allows you to go to the line of code with the appropriate label.
In functions, this transition goes to local labels (located in this function).
Added operator global
Syntax:
goto global

Being written in a function, it allows you to exit from a function to a global label declared outside of functions.

Example:

CODE:
a:; //№ 1
ff ();


function ff ()
{
a:; //№ 2
goto a; //Prereydet on a tag № 2
goto global a; //Preload on a label a № 1
}


Labels declared in include will not be distributed.

Powered by ExBB FM 1.0 Final