ChardScript Comments
Comments can be used to explain ChardScript code, make the code more readable and prevent execution when testing code.
Creating a Comment
Comments starts with a #
, and ChardScript will ignore them:
Example
Comments can be placed at the end of a line, and ChardScript will ignore the rest of the line:
Example
A comment does not have to be text that explains the code, it can also be used to prevent ChardScript from executing code:
Example
Multi Line Comments
ChardScript does not really have a syntax for multi line comments.
To add a multiline comment you could insert a #
for each line:
Example
Last updated