Digita World

Home Digita
Scripting
Digita
Desktop
Digita
Applications
Other
Files
Links

Digita Script Tutorials - Adding Comments

A comment statement is a line of text that is not processed by the camera's script editor or displayed on the camera's LCD.

Comment statements are used to provide information to someone reading your script with a text editor. When added throughout a script, the logic of the script is easier to follow. Comments also provide a way to explain the operation of the script to the end user.

Single Line Comment Statements
Single line comment statements start with the # symbol and can be followed by any number of characters. The comment statement until the end-of -line character (carriage return) is reached. If the comment statement continues after the carriage return, the next line must also begin with a # symbol.

# the text that makes up the comment

Multi Line Comment Statements
Multi-line comment statements can only be used in scripts designed for products compatible with DigitaScript version 1.5. Multi-line comments should not be used if your goal is to create scripts compatible with all digita-enabled products.

Multi-Line comment statements start with /* and end with */. Any number of characters and carriage returns can be entered inside a multi-line comment.

/* the text
that makes up
the comment */

To next tutorial
Back to tutorial page


Last modified January 24, 2003          Copyright 2001, Chuck Gadd

Digita, Digita Desktop, DigitaPhoto.com, and DigitaDev.com are trademarks of FlashPoint Technology, Inc.