[JavaScript] Server Object

This recipe demonstrates on getting information about the current user.

The Server API is only available when rendering or generating either on the Repertoire Server, or through Repertoire Remote. Server is null in all other cases.

Use (Server!=null) to check whether the script is running on the server to prevent script errors when executing in stand-alone environments.

For example, in the VBox includes a Render If: (Server!=null) and the red error message includes a Render If: (Server==null)

To download the necessary files for this recipe, refer to the attached ZIP file.
ServerObject.zip (2.7 KB)