MQL4 Expression Operator

An expression followed by a semicolon (;) constitutes an expression operator.

Assignment Operator

  • **Syntax:** identifier = expression;
  • **Description:** Assigns the result of an expression to an identifier.
  • **Chaining:** Can be used multiple times in an expression, evaluated left-to-right.
  • * Example: x = 3; y = x = 3; bool equal = (x == y);

    Function Calling Operator

  • **Syntax:** function_name(argument1, ..., argumentN);
  • **Description:** Invokes a function with specified arguments.
  • * Example: FileClose(file);

    Empty Operator

  • **Syntax:** ;
  • **Description:** Consists solely of a semicolon. Used to denote an empty body for control operators.
  • Related Concepts

  • [Initialization of Variables](/basis/variables/initialization)
  • [Visibility Scope and Lifetime of Variables](/basis/variables/variable_scope)
  • [Creating and Deleting Objects](/basis/variables/object_live)
  • Navigation

  • [Previous: Compound Operator](/basis/operators/compound)
  • [Next: Return Operator](/basis/operators/return)