# Types/Literals

Dasel supports the following literal types in queries.

## Integers

Integers are represented as whole numbers.

```
1
5234
-530
```

Note: If `-530` is detected as a bad binary expression (nothing subtract 530) it can be grouped, e.g. `(-530)`.

## Floats

Numbers are interpreted as floats when they contain a decimal place `.` or are followed with an `f`.

```
1.1
23.45
123f
```

## Booleans

Bools are matched by a case insensitive match on `true` or `false`.

```
true
True
TRUE
false
False
FALSE
```

## Strings

Strings are a sequence of characters surrounded by quotes — both single and double quotes are supported.

```
"I am a string"
'I am a string'
"I am a string with an escaped \" inside of me"
```

## Null

The `null` literal represents an absent or empty value.

```
null
```

`null` is returned by functions like [`first`](/functions/first.md) and [`last`](/functions/last.md) on empty arrays, and is the fallback trigger for the [`??` coalesce operator](/syntax/coalesce.md).

## Arrays

Array literals are defined with square brackets. See [Arrays/slices](/syntax/arrays-slices.md) for full documentation.

```
[1, 2, 3]
["a", "b", "c"]
[1, "mixed", true, null]
```

## Objects

Object/map literals are defined with curly braces. See [Objects/maps](/syntax/objects-maps.md) for full documentation.

```
{"name": "Tom", "age": 30}
```


---

# Agent Instructions: 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:

```
GET https://daseldocs.tomwright.me/syntax/types-literals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
