| Syntax | $account{exists}{account_id}
$account.exists{account_id}
$account{exists}{account_name}
$account.exists{account_name} |
| Documentation | Checks 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}}
} |
| Group | Special |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_EXPERT |
| Minimum parameters | 1 |
| Maximum parameters | 1 |