> 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/logical/and.md).

# and

## Description

'and' operator is a boolean operator that returns true if both operands are true and returns false otherwise.

## Input / Parameter

| Name   | Description                        | Input Type | Default | Options | Required |
| ------ | ---------------------------------- | ---------- | ------- | ------- | -------- |
| value1 | The first boolean value to check.  | Boolean    | -       | -       | Yes      |
| value2 | The second boolean value to check. | Boolean    | -       | -       | Yes      |

## Output

| Description                                                       | Output Type |
| ----------------------------------------------------------------- | ----------- |
| Returns true if both operators are true, returns false otherwise. | Boolean     |

## Callback

N/A

## Video

Coming Soon.

## Example

The user wants to check if value 1 and value 2 are both true and return the result in the console.<br>

### Step

1. Call the function `and` inside the `console` function.\
   value1 : greater (value1: 3000 and value2: 1100)\
   value2 : true<br>

   ![](/files/NtGIQkDUcaHYyJ4Q8seu)
2. Call the function `greater` inside the parameter `value1` and set `value2` to 'true'.

   ![](/files/S11ctYPMuTMub9kMkdfP)

   ![](/files/38i7YfKiL1aDOYi9AXuY)

   ![](/files/ByEZdAbu8jDFKyvOIvLd)

### Result

The console will print 'true' since `value1` will return 'true' (3000 is greater than 1100) which matches the input for `value2` (true).

## Links
