# ne

> **ne**(`name`, `value`): [`ComparisonNode`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/comparisonnode/)

Defined in: [src/query/expression.ts:214](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/488e08c3687cc5cfaf5dd8ab0fe0f7fed40930bb/src/query/expression.ts#L214)

Attribute is set with this type and holds a **different** value.

This is typed value-negation, not the complement: an entity that never set the attribute, or set
it with another type, does not match. Use `not(eq(...))` for the full complement.

## Parameters

### name

`string`

### value

[`ValueInput`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/valueinput/)

## Returns

[`ComparisonNode`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/comparisonnode/)

## Example

```ts
ne("status", str("closed"))          // status != str('closed')
not(eq("status", str("closed")))     // NOT status = str('closed') — also matches entities with no status
```