A SERVICE OF

logo

Chapter 3 Defining rules and queries 55
Defining queries
Table 3-9 provides examples of how to use the stmt syntax.
Defining queries
Use the following query syntax to define queries on the Query tab of the three
Mapping Information windows.
<$field$> <operator> <value>
This query syntax applies to AR System forms only. Each third-party adapter
defines its own query syntax, which might not be similar to the query syntax
described in this section. See the adapter documentation for the query syntax
supported by your adapter.
Table 3-9: Stmt syntax examples
Example Results
STMT| IF $CDiOsType$ = "Windows XP
Professional" THEN
VALUE = "Windows XP (67)"
ENDIF
(if $CDiOsType$ is set to Windows XP
Professional)
Returns
Windows XP (67).
STMT|IF $CDiOsType$ LIKE "Windows XP"
THEN
VALUE = "Windows XP (67)"
ELSE
VALUE = "Unknown"
ENDIF
(if $CDiOsType$ is set to Windows 2003
Professional)
The string
Windows XP does not appear
in Windows 2003 Professional. Returns
Unknown.
STMT|IF $ChassisType$ = "12" THEN
IF $ChassisSize$ = "Large" THEN
VALUE="12CRPF"
ENDIF
ElSE
VALUE="13CRPF"
ENDIF
(if $ChassisType$ is set to 12 and
$ChassisSize$ is set to Small)
The top-level
IF statement matches,
but the nested one does not. Because
no
ELSE clause exists on the nested IF
statement, no value is returned.