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

# Equals Block

## Equals Block

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

The equals block returns true if both inputs are equal.

To specify the blocks comparison type, use the dropdown in the center of the block.

### Generated Code

**=**

```javascript
input1 == input2;
```

## Not Equals Block

![Not Equals Block](https://602309350-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNeYKoJ5VTmJdlF1rx1%2F-LNixCklvoD49ML8vZ_A%2F-LNixDP1UvlCkFsRW7_T%2Fnotequal.jpg?generation=1538386094849013\&alt=media)

The not equals block returns true if both inputs aren't equal.

### Generated Code

**≠**

```javascript
input1 != input2;
```

## Less Than Block

![Less Than Block](https://602309350-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNeYKoJ5VTmJdlF1rx1%2F-LNihKFQ2MXuem_lR31S%2F-LNihKooqwTjFFQO5rQs%2Flessthan.jpg?generation=1538381938271631\&alt=media)

The less than block returns true if the first input is less than the second input.

### Generated Code

**<**

```javascript
input1 < input2;
```

## More Than Block

![More Than Block](https://602309350-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNeYKoJ5VTmJdlF1rx1%2F-LNihKFQ2MXuem_lR31S%2F-LNihKoq1GPuW6zH0BYM%2Fmorethan.jpg?generation=1538381930548786\&alt=media)

The more than block returns true if the first input is more than the second input.

### Generated Code

**>**

```javascript
input1 > input2;
```

## Less Than or Equal Block

![Less Than or Equal Block](https://602309350-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNeYKoJ5VTmJdlF1rx1%2F-LNihKFQ2MXuem_lR31S%2F-LNihKos7UvlqX8jRuN9%2Flessequal.jpg?generation=1538381939273467\&alt=media)

The less than or equal block returns true if the first input is less than or equal to the second input.

### Generated Code

**≤**

```javascript
input1 <= input2;
```

## More Than or Equal Block

![More Than or Equal Block](https://602309350-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNeYKoJ5VTmJdlF1rx1%2F-LNihKFQ2MXuem_lR31S%2F-LNihKouxg2sGY6p42sk%2Fmoreequal.jpg?generation=1538381939272046\&alt=media)

The less than or equal block returns true if the first input is more than or equal to the second input.

### Generated Code

**≥**

```javascript
input1 >= input2;
```
