How to exit a void function early?

Back to topics list To post a new topic, please log in or register
avatar
22
Alexnice 2015.09.22 19:12
 

Hi,


while a function can be exited with return(), how can I exit a void function after a certain condition is met and I don't wanna execute the remaining code in the function? Thanks!

avatar
12985
WHRoeder 2015.09.22 20:03 #
 
Function returning a value
 Void Function
return( value );
return value; // or
return; // void

avatar
22
Alexnice 2015.09.22 20:13 #
 
WHRoeder:
Function returning a value
 Void Function

Thanks. I wonder where I can look that up because I didn't find it in the MQL4 Reference ?
avatar
735
honest_knave 2015.09.22 20:46 #
 
Alexnice:
Thanks. I wonder where I can look that up because I didn't find it in the MQL4 Reference ?

Return Operator

 

Back to topics list  

To add comments, please log in or register