Download MetaTrader 5
To add comments, please log in or register
Have you published a program in the Market? Place it in your blog as well - the widget will help!
mark101
82
mark101 2015.09.22 17: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!

whroeder1
13600
whroeder1 2015.09.22 18:03  
Function returning a value
 Void Function
return( value );
return value; // or
return; // void
mark101
82
mark101 2015.09.22 18: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 ?
honest_knave
954
honest_knave 2015.09.22 18:46  
Alexnice:
Thanks. I wonder where I can look that up because I didn't find it in the MQL4 Reference ?

Return Operator

/
To add comments, please log in or register