MQL4 Reference Language Basics Operators Compound Operator

Compound Operator

A compound operator (a block) consists of one or more operators of any type, enclosed in braces {}. The closing brace must not be followed by a semicolon (;).


   Print("invalid position x = ",x);

See also

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