Error getting tags :
error 404Error getting tags :
error 404 -- | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
--
Basics
Expander triangle
Type
Keyword
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Indicates the start of a comment.
Examples

put 2 into myVar -- myVar holds the index
-- everything on this line is a comment

Additional Comments
Expander triangle

Anything between -- and the end of the current script line is treated as a comment and is ignored by Revolution when executing the handler.

Comments:

Comments are useful for documenting and explaining your code, either for others who might need to read and modify it, or for yourself. (The code may be clear in your mind now, but in six months, you'll be glad you included comments.)

Comments can be placed anywhere in a script--inside handlers or outside all handlers. In a long script with many handlers, it may be useful to divide the handlers into sections. Each section starts with a comment containing the section name and any other useful information. This practice helps you keep long scripts organized. Similarly, a lengthy handler can be made more readable by explanatory comments.

Comments can contain any text, including lines of Revolution code. If the code is within a comment, it's ignored. You can temporarily remove sections of code for debugging by putting those sections inside a comment.

User Comments
Expander triangle