Identified tests

Learn how to check if the user is identified.

This test checks whether the user is identified, that is, whether they have logged in or signed up. It is the opposite of the anonymous test.

Users are identified after they log in or sign up and remain identified until they log out. Before logging in and after logging out, they are anonymous.

Syntax

This test has the following syntax:

/*<user>*/ is identified
Try in Playground

To negate the test, you can write:

/*<user>*/ is not identified
Try in Playground

Consider using the anonymous test instead of negating this test for better readability.

Parameters

These are the supported parameters:

user

The user to check whether they are identified.

Examples

You can check whether a user is identified like this:

user is identified
Try in Playground