Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This server-side class enables you to interact allows interaction with the User Criteria.
SimpleUserCriteria()
It creates an instance of the SimpleUserCriteria class.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
const uc = new SimpleUserCriteria(); |
userAcceptanceByCriteria(user, criteria)
This method checks if the user fits the criteria specified.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
user | String | Y | N |
criteria | String or Array | Y | N |
Tip |
---|
The criteria parameter may be specified as an array of strings, as shown in the second code example. |
Return:
Type | Description |
---|---|
Boolean | Returns 'true' if the user fits the criteria specified; otherwise, returns 'false'. |
Example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
const uc = new SimpleUserCriteria(); uc.userAcceptanceByCriteria(ss.getUserID(), '158617888715304763'); |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
const uc = new SimpleUserCriteria(); uc.userAcceptanceByCriteria(ss.getUserID(), ['158617888715304763', '158617888715304765']); |
Table of Contents | ||||
---|---|---|---|---|
|