This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 4rpl:commands:comment [2021/01/19 13:47] – created Karsten75 | 4rpl:commands:comment [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Description ===== | ===== Description ===== | ||
| - | Comments improve the legibility of code and assists in explaining complex pieces of code. | + | |
| + | The # symbol will turn everything behind it on that line into a comment. | ||
| + | |||
| + | Comments can be used to temporarily disable lines of code, improve the legibility of code and assists in explaining complex pieces of code. | ||
| + | |||
| + | A single line of code is automatically added when generating a new script, it displays the original name of the script and the current date and time. | ||
| ===== Examples ===== | ===== Examples ===== | ||
| <code 4rpl> | <code 4rpl> | ||
| - | # This comment doesn' | + | # --CoolScript-- 1/2/2021 5:42:27 PM | 
| - | 5 6 add # if this is not 11, I'm a walrus | + | |
| + | # This comment doesn' | ||
| + | 5 6 add -> | ||
| + | |||
| + | |||
| + | # A temporarily disabled line of code: | ||
| + | # | ||
| </ | </ | ||
| < | < | ||