what is the command to "exit" a procedure ? New comment zemo 2016.11.17 20:03 Hi,I don't know what is the command that "exits" the function/procedure/event without execute the restfor 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 } Coding help Trade only certain times of day? How to exit a void function early? Alain Verleyen 2016.11.17 20:13 #1 return; zemo 2016.11.19 02:40 #2 thanks Carl Schreiber 2016.11.19 14:24 #3 Alain Verleyen: return;You forgotvoid ExpertRemove();;) Alain Verleyen 2016.11.19 14:43 #4 Carl Schreiber: You forgotvoid ExpertRemove();;)No, that's not an answer to the question : "how to exit a procedure".ExperRemove() doesn't exit the procedure. New comment
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
}