Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Tutorial 1.4. Comments

Adrodoc55 edited this page Feb 12, 2017 · 4 revisions

Sometimes the code does not speak for itself and you want to leave some hints for later. In those cases you want to add comments to your code.

MPL supports single and multiline comments:

// This is a single line comment
// This is a second single line comment
/*This
is
a
multiline
comment*/

Note that you CANNOT put a comment behind a command. Anything that comes after a single slash is considered to be part of the command, so the output of this program:

/say Hi // this is not a comment
/say there /* this is not a comment either */

is

Hi // this is not a comment
there /* this is not a comment either */

Now that you know the basics of MPL, we will focus on some higher level language features. For that let's look at Tutorial 2. Control structures.