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;

Multi-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 multi-line comment to prevent execution of multiple lines of 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 add the script using Script Builder.
  • To add a Multi-line comment, simply add the comment starting with '/*' and ending with '*/'. Multi-line comments can be added only through freeflow scripting.

Top