IsUserEmailPresent

Checks if an e-mail address is defined for the current user.

Type and Usage

Output

  • Returns TRUE if an e-mail address is defined for the user.

  • Returns FALSE if an e-mail address is not defined for the user.

Example

Checks whether the user is logged in and has an e-mail address before performing a function.

<@dynamichtml subscription_action_script@>
    function allowSubscription(form)
    {
    <$if IsLoggedIn$>
    <$if IsUserEmailPresent$>
    <$else$>
    …
    }
<@end@>