Expression Token Values

When you create an expression token, you must specify an attribute that the filter can use to evaluate the expression. Each attribute stores data by using a specific data type. For example, the Personal Computer architecture stores the SMSLocation attribute as a string and the Disk Storage Size attribute as an integer.

Note that the value used as the comparison value in an expression token (szValue in the expression's TOKEN structure) is passed in as a string. If necessary, the SMS API converts the string to the actual data type of the attribute in the expression token when the filter is evaluated.

This section describes the rules you should follow when you specify the expression value in the szValue member of the structure for an expression token. The SMS site database supports three data types:

Numerical Values (integers)

Date and Time Values

String Values