# PRESENT

The PRESENT function returns true if the input expression yields any non-null values within the current aggregation context; otherwise, it returns false.

## Syntax

`PRESENT(field)`

### Parameters

#### field

Expression that outputs values to be checked for presence.

## Examples

Determines if there are any non-null values in the `languages` field across all employees:

```esql
FROM employees
| STATS is_present = PRESENT(languages)
```

Checks if there are any non-null `salary` values within each group of employees sharing the same `languages` value:

```esql
FROM employees
| STATS is_present = PRESENT(salary) BY languages
```

For the employee with `emp_no` 10020, returns 1 if any non-null `languages` values are present, otherwise returns 0:

```esql
FROM employees
| WHERE emp_no == 10020
| STATS is_present = TO_INTEGER(PRESENT(languages))
```