# True & False Casting

## Overview

This section details how equations within Osmos evaluate boolean statements. The logical formulas and operators detailed in the [Logical Formulas & Operators](/data-transformations/formulas/logical-formulas.md) page involve logical statements which resolve into boolean `True` or `False` statements. These statements can also be directly represented in the following ways.

### Strings

#### Strings which evaluate to `true` (these values are not case sensitive):

* True
* T
* Yes
* Y

#### Strings which evaluate to `false` (these values are not case sensitive):

* False
* F
* No
* N

#### Other strings

If a provided string does match any of the examples above, Osmos will attempt to parse the value as a float.

### Floats

#### Floats are evaluated as follows:

* 1.0 = `True`
* 0.0 = `False`
* Any other value = Error

### Integers

#### Much like floats, integers are evaluated as follows:

* 1 = `True`
* 0 = `False`
* Any other value = Error

### Other

Any other values used as a boolean `True`/`False` value will result in an error. Note, however, that many logical formulas resolve into a viable boolean `True` or `False` value.


---

# 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://docs.osmos.io/data-transformations/formulas/logical-formulas/true-and-false-casting.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.
