Returns true or false depending if the indicated user exists or not.
1 system.user.exists
<system.user.exists code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
boolean | Existence of the user in the database. |
Example
Check if a user in the database exists or not.
Copy
<xsql-script name='system_user_exist_sample1'> <body> <println> <system.user.exists/> </println> </body> </xsql-script>
If you do not pass a user code via the attribute code, the system returns the value related with the user which executes the command.
Example
Check if a specifiec user exists.
Copy
<xsql-script name='system_user_exist_sample2'> <body> <println> <system.user.exists code='jet'/> </println> </body> </xsql-script>
Informing the attribute code, the system returns the value related with the specified user code.