Skip to end of banner
Go to start of banner

isAnyUserAuthenticated

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Syntax

isAnyUserAuthenticated()

Description

 Verifies if there is a logged in user.

Parameters

None

Return type

boolean (true/false)

A true return value means that there is a logged in user.

Example

Example 1

if (isAnyUserAuthenticated()) {
    print(currentDate());
}

This example will print the current date. If there is nobody logged in, the current date will not be printed.

See also

  • No labels