๐ฌ Comments
Comments let you add notes or explanations to your ZeroTrace scripts. They make your scripts much easier to understand for you and for others because comments are always ignored when your script runs.
โ๏ธ How to Write Comments
ZeroTrace supports comments almost anywhere, just like in popular programming languages!
1. Use #
or //
for Comments
- You can add
#
or//
anywhere on a line at the start or after a command. - Everything after
#
or//
is ignored by the interpreter.
2. Freestyle Notes
- Any line that doesn't match a command is treated as a comment and ignored.
- You can write plain English notes as long as you donโt start with a command word.
Warning: If your freestyle note starts with a command (like writeLn
, delay
, etc.), it will be executed!
โ Good Examples
โ Bad Example
This is incorrect because the text after writeLn "Test"
is not marked as a comment (missing #
or //
).
Always use #
or //
for inline comments after commands.
Tip: For best results and easy reading, use #
or //
for all your comments.
Inline comments are fully supported put them after any command, anywhere on the line!