Files
mql5-skills/skills/mql5/references/docs/00-basis/0035-basis-operators-compound.md
T
2026-06-23 21:47:51 +08:00

519 B

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 (;).

Example:

if(x==0)
  {
   Print("invalid position x = ",x);
   return;
  }

See also

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