@IsAbsoluteUrl (JavaScript)

Specifies whether a resource name is an absolute URL.

Defined in

@Functions (Extension Library)

Syntax

@IsAbsoluteUrl(url:string) : boolean
Table 1. Parameters
Parameter Description
url:string A resource name.
Table 2. Return value
Attribute Description
boolean True if the name is an absolute URL; false otherwise.

Examples

This computed field converts a resource name to an absolute URL if necessary.
return @IsAbsoluteUrl(requestScope.name) ? requestScope.name : @AbsoluteUrl(requestScope.name)