|REBOL 3 Docs||Guide||Concepts||Functions||Datatypes||Errors|
|TOC < Back Next >||Updated: 3-Aug-2010 Edit History|
Ignores the argument value and returns nothing.
value - A string, block, or any other value
This function can be used to add comments to a script or to remove a block from evaluation. Note that this function is only effective in evaluated code and has no effect in data blocks. That is, within a data block comments will appear as data. In many cases, using comment is not necessary. Placing braces around any expression will prevent if from being evaluated (so long as it is not part of another expression).
comment "This is a comment." comment [print "As a comment, this is not printed"]
Note also that if the expression can't be loaded using load, the expression can't be commented out:
comment [a,b] ** Syntax error: invalid "word" -- "a,b" ** Near: (line 1) comment [a,b]
|TOC < Back Next >||REBOL.com - WIP Wiki||Feedback Admin|