Skip to main content Skip to complementary content

Commenting in the script

Last updated: 9/11/2025

You can insert comments and remarks in the script code, or deactivate parts of the script code by using comment marks. All text on a line that follows to the right of // (two forward slashes) will be considered a comment and will not be executed when the script is run.

The data load editor toolbar contains a shortcut to commenting or uncommenting code. The function works as a toggle, if the selected code is not commented it will be commented, and vice versa.

Commenting

Do the following:

  1. Select one or more lines of code that are not commented out, or place the cursor at the beginning of a line.
  2. Click , or press Ctrl+K.

The selected code is now commented out.

Uncommenting

Do the following:

  1. Select one or more lines of code that are commented out, or place the cursor at the beginning of a commented line.
  2. Click , or press Ctrl+K.

The selected code is now not commented out.

Tip note

There are more ways to insert comments in the script code:

  • Using the Rem statement.
  • Enclosing a section of code with /* and */.

Example:  

Rem This is a comment ;
 
/* This is a comment
that spans two lines */
 
// This is a comment as well

Learn more

 

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!