Determines if the indicated user dispose of the SMS service configurated.
1 system.user.hasSMSEnabled
<system.user.hasSMSEnabled code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
boolean | True if the indicated user dispose of the SMS service configurated or false if not. |
Example
Determine if the user by default dispose of the SMS service configurated.
Copy
<xsql-script name='system_user_hasSMSEnabled_sample1'> <body> <println> <system.user.hasSMSEnabled /> </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
Determine if the indicated user dispose of the SMS service configurated.
Copy
<xsql-script name='system_user_hasSMSEnabled_sample2'> <body> <println> <system.user.hasSMSEnabled code='bpr'/> </println> </body> </xsql-script>
Informinf the attribute code, the system returns the value related with the specified user code.