Syntax

IsEmailAddress(value)
1 argument

Parameters

Name Type Required Description
value string Yes The string to validate as an email address.

Description

IsEmailAddress() is the bare-name Core-library form of Platform.Function.IsEmailAddress(). It requires Platform.Load("core", "1.1.5") before use — the bare name is undefined until the load has run.

It behaves identically to Platform.Function.IsEmailAddress(): same argument, same boolean return. Use the qualified Platform.Function.IsEmailAddress() form when you do not already have a Platform.Load call in scope.

Return value

Returns a booleantrue for a valid email address format, false otherwise.

Example

Platform.Load("core", "1.1.5");
if (IsEmailAddress(emailInput)) {
    Write("Valid email");
}

See Also