# Returning test

Learn how to check if the user has accessed the application before.

This test checks whether the user is returning, that is, whether they have accessed the application before.

To determine if a user is a returning visitor, this test checks whether the user has more than one visit, which is equivalent to the following condition:

```cql
user's stats' sessions > 1
```

Since visits are tracked automatically, this test requires no additional tracking beyond the regular integration.

## Syntax \[#returning-syntax]

This test has the following syntax:

```cql
/*<user>*/ is returning
```

To negate the test, you can write:

```cql
/*<user>*/ is not returning
```

## Parameters \[#returning-parameters]

These are the supported parameters:

- `user`: [`User`](/reference/cql/data-types/user/user)

  The user to check whether they are returning.

## Examples \[#returning-examples]

Here is how you can check whether a user has visited the application before:

```cql
user is returning
```

You can also check whether the user is a new visitor as follows:

```cql
user is not returning
```
