> 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

Variables, conditions, functions, arrays, combos, input layers, and output order — the full toolkit.

<figure><img src="https://611779084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIhlDMEOMB6JOWTfU9zr%2Fuploads%2FrUEsMH01Oktsz2zAL5mr%2Flearn-gpc%20(1).svg?alt=media&amp;token=177a302f-60b2-41e3-9c0f-d881a128ad91" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
