# Comments

Comments are part of your code that will not execute. They can be used for disabling a part of your code or adding notes to yourself or others. There are 2 types of comments.&#x20;

Like in Lua, you can do single-line and multi-line comments with ControlScript like this:

#### Single-Line Comment

```
-- This is a single line comment.
```

The example above is a single-line comment, which is a note and will not execute.

```
log("Hello World")
-- log("Hello World 2")
```

The example above shows 2 `log()` functions. The first will execute and output `Hello World` but the second won't, because it is a comment.

#### Multi-Line Comments

```
--[[ Multi-lines
comments are done
like this ]] 
```

The example above shows an multi-line comment, which is a note and will not execute.

```
var status = yes

--[[
if status == "yes" then
    log("Hello World")
end
]]
```

The code that is in a comment will not execute.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://control-blocks-mod.gitbook.io/control-blocks-mod-docs/controlscript/comments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
