MQL5 ReferenceLanguage BasicsOperatorsCompound Operator Compound OperatorExpression OperatorReturn OperatorConditional Operator if-elseTernary Operator ?:Switch OperatorLoop Operator whileLoop Operator forLoop Operator do whileBreak OperatorContinue OperatorObject Create Operator newObject Delete Operator delete 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 Operators Expression Operator