ANDOR

The ANDOR type represents a control token that connects two expression tokens, two subclauses, or a combination of an expression and a subclause. The ANDOR type defines the relationship between two adjacent expression tokens or subclauses.

typedef enum {
    OP_AND = 0x03,
    OP_OR = 0x02
} ANDOR;

The ANDOR type is used by the SmsAddToken function.

Members

OP_AND
Finds all objects that satisfy both expressions or subclauses connected by the OP_AND token. You can use OP_AND to narrow the list of objects you want to find. For example, the following machine filter finds all computers that have an 80386 processor, 4 MB of extended memory, and Microsoft Excel:
MICROSOFT|PROCESSOR|1.0:Processor Name is like '%386%'
AND
MICROSOFT|X86_PC_MEMORY|1.0:Extended Memory (KByte) is greater than '4000'
AND
MICROSOFT|SOFTWARE|1.0:Name is like '%Excel%'

This filter returns a list of computers that satisfied all three expressions.

OP_OR
Finds all objects that satisfy any (or both) of the two expressions or subclauses connected by the OP_OR token. You can use OP_OR to assemble a set of objects. For example, the following machine filter finds all computers that have an 80386 processor, 4 MB of extended memory, or Microsoft Excel—or any combination of the three:
MICROSOFT|PROCESSOR|1.0:Processor Name is like '%386%'
OR
MICROSOFT|X86_PC_MEMORY|1.0:Extended Memory (KByte) is greater than '4000'
OR
MICROSOFT|SOFTWARE|1.0:Software Name is like '%Excel%'

This filter returns a list of all computers that satisfied any one (or any combination) of the three expressions.

See Also

SmsAddToken