IsPreview

The IsPreview()function checks if the portal is being used in the Preview Runtime environment.

This function allows you to make certain features available only in the Preview environment. For example in a "Visible when" property of a navigation item, or even using a Decision Node in a flowchart to make a detour.

This function is SQL compatible. For more information about SQL compatibility, see our documentation.

Returns yes/true if the portal is being used in the Preview environment.

Returns no/false otherwise (staging or live).

Syntax

IsPreview()

IsPreview() => Yes, if portal is being used in the Preview environment, No otherwise (staging or live)

Last updated