Function Reference > Functions > IN
  

IN

Matches input data to a list of values. By default, the match is case sensitive.

Syntax

IN( valueToSearch, value1, [value2, ..., valueN,] CaseFlag )
Argument
Required/
Optional
Description
valueToSearch
Required
Can be a string, date, or numeric value. Input value you want to match against a comma-separated list of values.
value
Required
Can be a string, date, or numeric value. Comma-separated list of values you want to search for. Values can be columns. There is no maximum number of values you can list.
CaseFlag
Optional
Must be an integer. Determines whether the arguments in this function are case sensitive. You can enter any valid expression.
When CaseFlag is a number other than 0, the function is case sensitive.
When CaseFlag is a null value or 0, the function is not case sensitive.

Return Value

TRUE (1) if the input value matches the list of values.
FALSE (0) if the input value does not match the list of values.
NULL if the input is a null value.

Example

The following expression determines if the input value is a safety knife, chisel point knife, or medium titanium knife. The input values do not have to match the case of the values in the comma-separated list:
IN( ITEM_NAME, ‘Chisel Point Knife’, ‘Medium Titanium Knife’, ‘Safety Knife’, 0 )
ITEM_NAME
RETURN VALUE
Stabilizing Vest
0 (FALSE)
Safety knife
1 (TRUE)
Medium Titanium knife
1 (TRUE)
NULL