> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logical

Converts the input value into a Boolean type, with a logical value of either True or False

**Category:** `conversion`

**Syntax:**

```
Logical(input)
```

**Returns:** `Boolean`

**Context Filtering:** ✓ Yes

## Parameters

| Name    | Type                       | Required | Description                                                                                                |
| ------- | -------------------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
| `input` | `text or number or column` | ✓ Yes    | The input that you would like to be interpreted as a logical operator. Input can be of text or number type |

**Allowed Column Types for `input`:** STRING, TEXT, INT, FLOAT, DECIMAL, BOOLEAN

## Validation

* Minimum parameters: 1
* Maximum parameters: 1

## Examples

```
Logical(0)
```

Returns False
**Result:** `False`

```
Logical(1)
```

Returns True
**Result:** `True`

```
Logical("True")
```

Returns True
**Result:** `True`
