MQL4 Return Operator
Overview
The return operator terminates the execution of the current function and returns control to the calling program. The result of an expression calculation is returned to the calling function. The expression can include an assignment operator.
Syntax and Usage
return(expression);
The expression's calculated value is returned.void functions):** void SomeFunction() {
// ...
return;
}
This operator can be omitted in void functions, as the function's closing brace implicitly executes return; without an expression.Returnable Types
Non-Returnable Types
Related Concepts
Previous
arrow_back
Expression operator