> For the complete documentation index, see [llms.txt](https://docs.internetobject.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.internetobject.org/structure-and-syntax/structural-elements/literals.md).

# Literals

Predefined constant values — booleans, null, and special numbers.

Literals are predefined constant values that represent common data states and special values. They offer a concise way to express boolean values, null states, and special numeric values without quotes or extra syntax.

## Supported literals

Internet Object supports the following literals:

| Literal | Type    | Represents                      | Case sensitive |
| ------- | ------- | ------------------------------- | -------------- |
| `true`  | Boolean | True value                      | Yes            |
| `T`     | Boolean | True value (short form)         | Yes            |
| `false` | Boolean | False value                     | Yes            |
| `F`     | Boolean | False value (short form)        | Yes            |
| `null`  | Null    | Null / empty value              | Yes            |
| `N`     | Null    | Null / empty value (short form) | Yes            |
| `Inf`   | Number  | Positive infinity               | Yes            |
| `-Inf`  | Number  | Negative infinity               | Yes            |
| `NaN`   | Number  | Not a Number                    | Yes            |

## Examples

```ruby
# Boolean literals
~ isActive: true, verified: F, isDeleted: false, visible: T

# Null literals
~ middleName: null, nickname: N

# Special numeric literals
~ maxValue: Inf, minValue: -Inf, result: NaN
```

## Rules

* **Case sensitive** — literals **MUST** use exact case; `True`, `FALSE`, and `NULL` are invalid.
* **No quotes** — literals are written without quotes; quoting one makes it an ordinary string.
* **Short forms** — `T`, `F`, and `N` are single-letter shortcuts for `true`, `false`, and `null`.

## See Also

* [Booleans](/structure-and-syntax/values/booleans.md) — the boolean type in detail
* [Nulls](/structure-and-syntax/values/null.md) — null and optional values
* [NaN and Infinity](/structure-and-syntax/values/number/nan-and-infinity.md) — special numeric values


---

# 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://docs.internetobject.org/structure-and-syntax/structural-elements/literals.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.
