Comment types in source texts of MyChat scripts
You can use the following three types of comments in the program:
- for one line: //
- for one or few lines : { }
- for one or few lines: (* *)
Example
program Test;
// this a single line comment. Everything that goes after double slashes
// in this lines ignored
procedure Increment(var n: integer);
begin
{this is a multi line comment
in curly braces}
n := n - 1;
end;
procedure Decrement(var n: integer);
begin
n := n - 1; (* you can do *)
end;(*this as well*)
begin
x := 100; // assign value
Increment(x {this is an integer type variable});
Decrement(x); (* decrease value *)
end.