@IsAvailable (JavaScript)

Indicates whether an item exists in the current document.

Defined in

@Functions (JavaScript)

Syntax

@IsAvailable(name:string) : int
Parameter Description
name The name of the item.
Return value Description
int 1 if the item exists; 0 otherwise.

Examples

This example is a label value. It displays if data for element0 is present.
if(@IsAvailable("Subject") == @True())
	return "Subject is available"
else
	return "Subject is unavailable"