# isLoggedIn {#isloggedin}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`isLoggedIn(userId)`

## Arguments {#arguments}

**userId** a string indicating a user name. It can only contain letters, underscores, or numbers. It cannot start with numbers. The length cannot exceed 30 characters.

## Details {#details}

Return a Boolean value indicating whether the specified user is logged in.

## Examples {#examples}

```
isLoggedIn(`AlexSmith)
// output: false
```

