MicroStrategy ONE

Commenting or uncommenting a selection

Comments are sections of a script that Command Manager does not treat as part of the script. They are not executed, and their syntax is not checked. They can be explanatory remarks about the content of the script, or lines that you no longer want to execute but do not want to delete.

Comments in Command Manager scripts have two slashes ( // ) at the beginning of the line. You can manually turn a line into a comment by adding slashes to the beginning of the line, or you can select several lines and turn them all into comments with the Comment Block feature. You can also delete comment marks from several lines at once with the Uncomment Block feature.

To comment or uncomment a selection of a script

  1. Select the script's tab in its Script window.

  2. Select the portion of the script that you wish to comment or uncomment. (If you wish to comment or uncomment the entire script, you do not need to select.)

  3. From the Edit menu, select Comment Block or Uncomment Block. A pair of slashes are added to or removed from the beginning of each selected line.

Related Topics

Indenting or unindenting a selection

Editing a script

Script window