> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/conversion/toboolean.md).

# toBoolean

## Description

Converts a passed value to a boolean type.

## Input / Parameter

| Name  | Description                        | Input Type | Default | Options | Required |
| ----- | ---------------------------------- | ---------- | ------- | ------- | -------- |
| value | The value to convert to a boolean. | Any        | -       | -       | Yes      |

## Output

| Description                            | Output Type |
| -------------------------------------- | ----------- |
| Returns the passes value as a boolean. | Boolean     |

## Callback

N/A

## Video

Coming Soon.

## Example

### Steps

1. Drag `toBoolean` function into the event flow.

   ![](/files/CPZZNLuoIncypUdDxgvX)

### Result

| Values                           | Expected result |
| -------------------------------- | --------------- |
| ![](/files/GjpKVmp5wIQGWaJgRTt7) | `false`         |
| ![](/files/cQkgE10kqUe62WCoe9Nv) | \`true          |

## Links
