Comments

Types

  • **Multi-line Comments:**
  • * Start with /* * End with */ * Cannot be nested.
  • **Single-line Comments:**
  • * Start with // * End with a newline character. * Can be nested within multi-line comments.

    Placement

  • Comments are allowed anywhere spaces are allowed.
  • Comments can contain any number of spaces.
  • Examples

    //--- Single-line comment
    /*  Multi-
        line    // Nested single-line comment
        comment
    */
    

    Related Topics

  • [Syntax](/basis/syntax)
  • [Identifiers](/basis/syntax/identifiers)
  • [Reserved Words](/basis/syntax/reserved)
  • Help Files

  • [English MQL4 Help (CHM)](https://www.mql5.com/files/docs/mql4.chm)
  • [Russian MQL4 Help (CHM)](https://www.mql5.com/files/docs/mql4_russian.chm)