ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. isElementPreview

Function

isElementPreview

ClientGame engineTrilogy Hub only

Checks whether a value is an existing preview from createElementPreview.

Syntax

bool isElementPreview(mixed value)

Arguments

valuemixed
The value.

Returns

true for a preview.

Example

if isElementPreview(preview) then destroyElementPreview(preview) end

See also