Creator Help

Add Comment

Table of ContentsDown

Description

Deluge comments can be used to describe the code and make the code more readable. Deluge comments can also be used to prevent execution, when testing alternative code. Deluge supports both single line and multi line comment.

Single line comment - A single line comment starts with "//" . Any text between // and the end of the line will be ignored. This example uses a single line comment to explain the code.

//Update Total Price
input.Total = input.Price * input.Quantity;

Mult line comment - A multi line comment starts with '/*' and ends with '*/'. Any text between /* and */ will be ignored. This example uses a multiline comment to explain the code.

/*The script given below will calculate 
the total cost of the order */ 
input.Total = input.Price * input.Quantity;

Using Comments to prevent execution

This example uses a multiline comment to prevent execution of multiple lines o f code

/*input.Total = input.Price; 
input.Total=input.Price * input.Quantity - input.Discount; */ 
input.Total = input.Price * input.Quantity;

Steps to add the script

To add a comment line in script builder, use the Add comment task as shown in the screen-shot below. Click on the Edit button and specify the comment text.

Refer the topic Using Script Builder for steps to invoke the script builder and add the script.

Top