Returns the country code of the indicated user.
1 system.user.getCountry
<system.user.getCountry code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
string | User country code. |
Example
Obtains the user country code by default.
Copy
<xsql-script name='system_user_getCountry_sample1'> <body> <println> <system.user.getCountry /> </println> </body> </xsql-script>
If you do not pass an user code via the attribute code, the system returns the value related with the user which executes the command.
Example
Obtains the country code of a specific user.
Copy
<xsql-script name='system_user_getCountry_sample2'> <body> <println> <system.user.getCountry code='bpr'/> </println> </body> </xsql-script>
Informing the attribute code, the system returns the value related with the specified user code.