$account.exists

Investigates the existance of an account
Syntax
    $account{exists}{account_id}
    $account.exists{account_id}
    $account{exists}{account_name}
    $account.exists{account_name}
DocumentationChecks if an account exists:

    Parameters:
      account_id|name, the id or the name of the account whos existance is to be investigated.
    Returns:
      1 if and only if the account exists; false otherwise.
    Note:
      the name of an account can not be used as an unique account identifier since more then one accounts can share the same name. The id of the account should be used if unique identification is desired.
Examples
    $//Check if an account named 'myAccount' exists. If not create it.
    if {$account{exists}{$get{name}}}
      {
      }
      {
      $account{create}{$get{name}}{$get{template}}{$get{uid}}{$get{pwd}}
      }
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_EXPERT
Minimum parameters1
Maximum parameters 1