Control Values: Integers

The default values for some controls must be specified as integers or whole numbers. The control type determines the type of comparison performed to calculate expected values and determine compliance.

Single Integer

A single integer in scans results data (x) is compared to a single integer or range defined for a control (Y). The control values include a default value (an integer or range of integers) and an operator. The operators are described below.

Operator

You are compliant when

less than

X is less than Y

greater than

X is greater than Y

less than or equal to

X is less than or equal to Y

greater than or equal to

X is greater than or equal to Y

not equal to

X is not equal to Y

equal to

X is equal to Y

in

X is in Y

in range

X is in the range Y

 

Tell me about the "in" operatorTell me about the "in" operator

For the "in" operator, the default value includes a list of integers. Each integer with a colon. For example, 1:3:8:4. If the scan results return a "3" then the control Passes because the 3 is in the list of integers defined for the control. If the scan results return a "7" then the control Fails because the 7 is not in the list of integers defined for the control.

Tell me about the "in range" operatorTell me about the "in range" operator

For the "in range" operator, the default value includes a single integer of a range of integers. For example, 1-5. If the scan results return a "3" then the control Passes because the 3 is in the range defined for the control. If the scan results return a "6" then the control Fails because the 6 is not in the range defined for the control.

List of Integers

A list of integers in the scan results data (X) is compared to a single integer or range defined for a control (Y). The control values include a default value (an integer or range of integers), a cardinality and an operator. The possible cardinality and operator combinations are below.

Cardinality

Operator

You are compliant when

match any

less than

any integer in X is less than Y

match any

greater than

any integer in X is greater than Y

match any

less than or equal to

any integer in X is less than or equal to Y

match any

greater than or equal to

any integer in X is greater than or equal to Y

match any

not equal to

any integer in X is not equal to Y

match any

equal to

any integer in X is equal to Y

match any

in range

any integer in X is in the range Y

match all

less than

all integers in X are less than Y

match all

greater than

all integers in X are greater than Y

match all

less than or equal to

all integers in X are less than or equal to Y

match all

greater than or equal to

all integers in X are greater than or equal to Y

match all

not equal to

no integers in X are equal to Y

match all

equal to

all integers in X are equal to Y

match all

in range

all integers in X are in the range Y

match none

less than

no integers in X are less than Y

match none

greater than

no integers in X are greater than Y

match none

less than or equal to

no integers in X are less than or equal to Y

match none

greater than or equal to

no integers in X are greater than or equal to Y

match none

not equal to

all integers in X are equal to Y

match none

equal to

no integers in X are equal to Y

match none

in range

no integers in X are in the range Y

List Comparison

A list of integers returned in the scan results (X) is compared to a list of integers defined for a control (Y). The control values include a default value (a list of integers) and a cardinality. The possible cardinalities are below.

Cardinality

You are compliant when

contains

X contains all of Y

does not contain

X does not contain any of Y

intersect

any integer in X matches any integer in Y

matches

all integers in X match all integers in Y (listed in any order)

is contained in

all integers in X are contained in Y