// __comment
/* __comment */

Comments are pieces of text in the robot that will not be processed. They can be used to provide inline documentation or to disable pieces of code without immediately removing them. There are two types of comments: single line and multi line.

Single line comment

Place a double slash // at the start of the comment. The one and only thing to end the comment is the line end.

// Log an entry to mark the start of the robot 
System.print("Starting robot"); // You can also comment at the right side of your code

Multi line comment

Start with /* and end with */. Anything in between will be considered part of the comment:

// The following piece of code is disabled 
var page = Web.loadPage("http://www.google.com");
var paragraphs = XML.xpath(page,"//p");
var and_this = "not disabled";