skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : In {List}
 

Try Corticon Now

In {List}

SYNTAX

Date
<Date1> in {<Date2>,<Date3>,...}
DateTime
<DateTime1> in {<DateTime2>,<DateTime3>,...}
Decimal
<Decimal1> in {<Decimal2>,<Decimal3>,...}
Integer
<Integer1> in {<Integer2>,<Integer3>,...}
String
<String1> in {<String2>,<String3>,...}
Time
<Time1> in {<Time2>,<Time3>,...}

DESCRIPTION

Returns the value true if the attribute type is contained in the set of valid values for the attribute.

USAGE RESTRICTIONS

*The set of values is always enclosed in braces: { }
*For integer and decimal data types, a list of literals or enumerated values without labels requires that the values are not in single quotes, such as {3,1,2}.
*For date and String data types, a list of literals or enumerated values without labels requires that the values are in single quotes, such as {'B','A','C'}.
*The list can be in any order.
*Duplicate values or labels in a list are tolerated.
When enumerated datatypes with labels are used:
*The labels are listed without delimiters, such as {B,A,C}
*Values and labels can be mixed, such as {A,B,'C_value'}.
Note: While literal values in the enumeration table are accepted in a list, only existing label values will be exposed and accepted as valid.
The Operators row of the table in Vocabulary Usage Restriction does not apply. The in operator can be used in Conditions and Filters, but not in Actions.

RULESHEET EXAMPLE

The example's Vocabulary defined an enumerated list:
The following Rulesheet uses in to filter certain labels to be tested against request data:

SAMPLE TEST

A sample Ruletest provides examples. Input and Output panels are shown below.