MQL4参考 语言基础 操作符 嵌入操作符

Break Operator

The break operator terminates the execution of the nearest nested outward switch, while, do-while or for operator. The control is passed to the operator that follows the terminated one. One of the purposes of this operator is to finish the looping execution when a certain value is assigned to a variable.


//--- searching for the first zero element

See also

Initialization of Variables, Visibility Scope and Lifetime of Variables, Creating and Deleting Objects