Using Comments

   Print  Previous  Next

During your study of this manual, surely you have encountered source code examples with text that is not part of the actual script. These so-called comments are a help for the programmer and other users of the script. There are two different kinds of comments in MADRIX Script.

Single line comments are induced with "//" and they end at the end of the line.

//This is a comment about a single line

//This is the next line

 

Multi-line comments are induced with "/*" and end with "*/". You have the possibility to inherit any comments in multi-line comments.

/* a comment starts here

    /*

        one comment more

    */

    

*/ end of the complete comment

 

Comments are used for a better readability and understandability of the source code.