> For the complete documentation index, see [llms.txt](https://craftscript.kenzie.mx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://craftscript.kenzie.mx/syntax/keywords.md). Agents can also search and read this documentation through its [MCP server](https://craftscript.kenzie.mx/~gitbook/mcp).

# Keywords

Control keywords for the language.

| Word       | Use                                                     |
| ---------- | ------------------------------------------------------- |
| `assert`   | Make certain a value is true.                           |
| `require`  | Make certain variables are present.                     |
| `import`   | Obtains the output of an external program.              |
| `if`       | Run a statement on a condition.                         |
| `while`    | Continually run a statement on a condition.             |
| `for`      | Run a statement for every element in a collection.      |
| `do`       | Runs code in the context of an object.                  |
| `run`      | Run an executable object.                               |
| `struct`   | Create a data structure with a fixed set of properties. |
| `function` | Creates an executable object to run a statement.        |
| `syntax`   | Defines new syntax available in the current script.     |
| `null`     | The empty value.                                        |
| `false`    | The false value.                                        |
| `true`     | The true value.                                         |
