> For the complete documentation index, see [llms.txt](https://guide.cronuszen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.cronuszen.com/gpcscripting/gpc-script-guide/learn-gpc.md).

# Learn GPC

<figure><img src="/files/aLmdojnP0pgGFLab9XTt" alt=""><figcaption></figcaption></figure>

Learn the complete source language a piece at a time, from declarations and operators to functions, remaps, and combos.

***

Work through these pages in order the first time. Return directly to any page later as a reference.

* [Source layout and global namespace](/gpcscripting/gpc-script-guide/learn-gpc/source-layout-and-global-namespace.md)
* [Statements, blocks, and comments](/gpcscripting/gpc-script-guide/learn-gpc/statements-blocks-and-comments.md)
* [Runtime variables](/gpcscripting/gpc-script-guide/learn-gpc/runtime-variables.md)
* [Definitions](/gpcscripting/gpc-script-guide/learn-gpc/definitions.md)
* [Enumerations](/gpcscripting/gpc-script-guide/learn-gpc/enumerations.md)
* [Immutable const data](/gpcscripting/gpc-script-guide/learn-gpc/immutable-const-data.md)
* [Raw data section](/gpcscripting/gpc-script-guide/learn-gpc/raw-data-section.md)
* [`sizeof` and `addr`](/gpcscripting/gpc-script-guide/learn-gpc/sizeof-and-addr.md)
* [Boolean truth](/gpcscripting/gpc-script-guide/learn-gpc/boolean-truth.md)
* [Operators](/gpcscripting/gpc-script-guide/reference/language-and-operators.md)
* [Flow control](/gpcscripting/gpc-script-guide/learn-gpc/flow-control.md)
* [User-created functions](broken://pages/AXmcPwMgSa2b4W64wDtl)
* [`init` and `main`](/gpcscripting/gpc-script-guide/learn-gpc/init-and-main.md)
* [Remap and unmap](/gpcscripting/gpc-script-guide/learn-gpc/remap-and-unmap.md)
* [Combos and `fcombo`](/gpcscripting/gpc-script-guide/learn-gpc/combos-and-fcombo.md)
* [Compile-time versus runtime checklist](/gpcscripting/gpc-script-guide/learn-gpc/compile-time-versus-runtime-checklist.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://guide.cronuszen.com/gpcscripting/gpc-script-guide/learn-gpc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
