Product Information > JADE Developer’s Reference > Chapter 1 - JADE Language Reference > Using Comments in Your Methods

Using Comments in Your Methods

You can include descriptive or documentary comments in your JADE methods.

The types of comments that can be used in a method are as follows.

In multiple-line comments, all text (including any double stroke (//) character string) that follows the stroke asterisk (/*) character string is ignored until the asterisk stroke (*/) character string is encountered.

The following example shows the use of single-line comments and embedded comments.

helloWorld();
vars
    count : Integer;
begin
    // outputs "hello world" 10 times
    foreach count /* embedded comment */ in 1 to 10 do
        /* multiple
           line
           comment */
        write "hello world";
    endforeach;
end;