Quota Setup > Expression quotas > Defining expression quotas > Advanced expressions
 
Advanced expressions
You can define quotas whose characteristics are of almost unlimited complexity using the Expression Definition language. This is based on VBScript and supports all of the VBScript functions. It also includes additional functions that have been designed to meet the needs of the market research industry. For detailed information about the many functions that are available, refer to the Function Library documentation in the UNICOM Intelligence Developer Documentation Library.
When you create a simple expression, UNICOM Intelligence Quota Setup converts the expression into the Expression Definition language automatically. When you create an advanced expression, you write the expression yourself in the Advanced Filter Specification window, which is designed to make creating expressions easy. The Advanced Filter Specification window has buttons for the operators and functions that you are most likely to use, as well as lists of all of the variables and functions that are available. You can build an expression by choosing variables and clicking operator buttons, by entering the expression directly, or by using a combination of the two approaches.
Expression syntax
At its most basic, an expression is:
Variable Operator Value
Parameters
Variable
The name of a variable.
Operator
A comparison operator, such as > (greater than) or = (equal to), or one of the functions for selecting respondents on the basis the answers given to a question (variable).
Value
One or more answers held in the variable.
Enclose text values in double quotes: for example, "noisy".
Specify values of a categorical variable by defining a comma-separated list of category texts enclosed in braces and parentheses: for example, ({Assam, Darjeeling, China}).
Specify values from numeric variables as numeric values.
When a quota statement for an expression quota is executed during an interview, the expression is evaluated and returns a value of true for a respondent who has the quota characteristics and false for a respondent who does not have the required characteristics.
See also
Specifying expressions using the advanced method
Comparison operators in expression quotas
Logical operators in expression quotas
Functions
Arithmetic operators in expression quotas
Operator precedence in expression quotas
Expression quotas