---
url: /cube-functions/elementexists.md
description: Returns 1 if the element exists in the specified dimension or 0.
---

# ELEMENTEXISTS

Returns 1 if the element exists in the specified dimension or 0.

```js
ELEMENTEXISTS(dimension, element)
```

#### Parameters

* `dimension` - The name of the dimension.
* `element` - The name of the element.

#### Examples

```js
ELEMENTEXISTS("Time", "2018")
```

**Note:** Returns 1 if the element `2018` exists in the Time dimension.
