> For the complete documentation index, see [llms.txt](https://docs.discorddungeons.me/quest-editor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.discorddungeons.me/quest-editor/logic-blocks/and.md).

# And/Or Block

![And Block](/files/-LNihMZYbdsDqCSbvRdz)

![Or Block](/files/-LNihMZ_gMU2_mLGUUEH)

The and block returns true if both inputs are true.

The or block returns true if any of the inputs are true.

To specify a condition, add two blocks to the inputs.

To specify if the block should be an `and` or an `or` block, use the dropdown in the center of the block.

## Generated Code

**And**

```javascript
condition1 && condition2;
```

**Or**

```javascript
condition1 || condition2;
```
