> 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](https://602309350-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNeYKoJ5VTmJdlF1rx1%2F-LNihKFQ2MXuem_lR31S%2F-LNihMZYbdsDqCSbvRdz%2Fand.jpg?generation=1538381965333925\&alt=media)

![Or Block](https://602309350-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNeYKoJ5VTmJdlF1rx1%2F-LNihKFQ2MXuem_lR31S%2F-LNihMZ_gMU2_mLGUUEH%2For.jpg?generation=1538381945911962\&alt=media)

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;
```
