what is the command to "exit" a procedure ?

 

 Hi,

I don't know what is the command that "exits" the function/procedure/event without execute the rest

for example my code below...

tks 

 void OnTick(){

  bool RoboON = false;

   if (checkTimeLimits(StartHour1,StartMinute1,EndHour1,EndMinute1,TimeCurrent()))

   RoboON = true;

   if (checkTimeLimits(StartHour2,StartMinute2,EndHour2,EndMinute2,TimeCurrent()))

   RoboON = true;

   if (RoboON) 

   Exit;  <=====  what is "exit" function that abort the rest of procedure ?

   ..more code ....

   ..etc 

  } 

 
return;
 
thanks
 
Alain Verleyen:
return;

You forgot

void  ExpertRemove();
;)
 
Carl Schreiber:

You forgot

void  ExpertRemove();
;)

No, that's not an answer to the question : "how to exit a procedure".

ExperRemove() doesn't exit the procedure.