Comments
Annotate scripts with single-line // and # comments or multi-line comment blocks
Comments are notes that are ignored during execution. ZeroTrace supports single-line comments and multi-line comment blocks.
Single-line comments
Place // or # at the start of a line or after a command. Everything from the marker to the end of the line is stripped.
# Full-line comment
writeLn "Hello" // Inline comment
delay "1000" # Another inline comment
// Another full-line commentFreestyle notes
Any line that does not begin with a valid command is ignored, so plain notes are safe.
This is a freestyle note and will be ignored.Comment blocks
commentStart … commentEnd skips everything between the two markers, across multiple lines. Unlike single-line comments, a comment block also works inside repeat, while, and function bodies.
commentStart
This whole section is ignored,
including any commands inside it.
commentEndComments inside write blocks
# This script prints a message
writeLn "Hello, World!" // Inline comment
// Wait before the next command
delay "1000"
_$VAR isAdmin = "true" // Variable assignment with a comment