This server-side class enables you to interact with the User Criteria.

SimpleUserCriteria()


It creates an instance of the SimpleUserCriteria class.

var uc = new SimpleUserCriteria();

userAcceptanceByCriteria


This method checks if the user fits the criteria specified.


Parameter(s):

NameTypeMandatoryDefault Value
userStringYN
criteriaStringYN


The criteria parameter may be specified as an array of strings, as shown in the second code example.


Return:

TypeDescription
BooleanReturns 'true' if the user fits the criteria specified; otherwise, returns 'false'.


Example:

var uc = new SimpleUserCriteria();
uc.userAcceptanceByCriteria(ss.getUserID(), '158617888715304763')


var uc = new SimpleUserCriteria();
uc.userAcceptanceByCriteria(ss.getUserID(), '158617888715304763', '158617888715304765')