> 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.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-e0d7eb50b963e13a177dcd9c15e63f666e1aae3d%2FtoBoolean-step-1.png?alt=media)

### Result

| Values                                                                                                                                                                                                         | Expected result |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-24c40b372c9dd4c8fddd21a510c7377f0501a117%2FtoBoolean-step-2.png?alt=media) | `false`         |
| ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-2a051045a950da25a692c17e54c4d6d5a7b550da%2FtoBoolean-step-3.png?alt=media) | \`true          |

## Links
