How to exit a void function early?

 

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!

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

Return Operator

Reason: