# ne

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

Defined in: [src/query/expression.ts:218](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/5182f6d142de34497e0057b9fb39dce64f96f65a/src/query/expression.ts#L218)

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://docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/valueinput/)

## Returns

[`ComparisonNode`](https://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
```