Difference between revisions of "comment"

From Bohemia Interactive Community
Jump to navigation Jump to search
(moving comment to discussion)
Line 58: Line 58:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 1, 2015 - 16:45 (UTC)</dd>
<dt class="note">[[User:Chris5790|Chris5790]]</dt>
<dd class="note">
Obsolete since comments can be introduced with a double slash or block comments with /* ... */
<!-- DISCONTINUE Notes -->

Revision as of 19:14, 1 October 2015

Introduced with Operation Flashpoint: Resistance version 1.851.85
Hover & click on the images for descriptions


Define a comment. Mainly used in SQF Syntax, as you're able to introduce comment lines with semicolons in a SQS script.


comment commentMsg
commentMsg: String - the comment that you'd like to write here
Return Value:


Example 1:
script.sqs comment "This is a commented line"
Example 2:
function.sqf comment "This is a commented line";

Additional Information

See also:
Control Structures


Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.


Posted on December 17, 2006 - 19:13
ArmA 1.0-1.2 brackets, {}, can no longer be used with comment. The following examples, which worked in OFP, no long work for ArmA: * comment {string...}; * comment { CoC Network Service 2.0 CoC bn880 28/02/2004; example comment};
Posted on September 12, 2009 - 19:50
Like ArmA, you can't use brackets to make a multi-lines comment. But, in a sqf file, you can make a comment as follow : comment " first line seconde line";

Bottom Section