> 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

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