@IsUnavailable (JavaScript)
Indicates whether an item exists in the current document.
Defined in
@Functions (JavaScript)Syntax
@IsUnavailable(name:string)
: int
Parameter | Description |
---|---|
name |
The name of the item. |
Return value | Description |
---|---|
int |
1 if the item does not exist; 0 otherwise. |
Examples
This example is a label value. It displays if data forelement0
is present.if(@IsUnvailable("Subject") == @True())
return "Subject is unavailable"
else
return "Subject is available"