Skip to main content Skip to complementary content

mixmatch - script and chart function

The mixmatch function compares the first parameter with all the following ones and returns the numeric location of the expressions that match. The comparison is case insensitive and insensitive to the Japanese Hiragana and Katakana character systems.

Syntax:  

mixmatch( str, expr1 [ , expr2,...exprN ])

Return data type: integer

If you want to use case sensitive comparison, use the match function. If you want to use case insensitive comparison and wildcards, use the wildmatch function.

Arguments
Argument Description
str The string to be evaluated.
expr1 The first expression to check for a valid number representation.
expr2

The second expression to check for a valid number representation.

expr3

The third expression to check for a valid number representation.

Example: Chart expressions
Example Result

mixmatch( ColorCode,'black','Blue' )

This expression returns 1 if the value of ColorCode is Black or 2 if the value of ColorCode is Blue.
mixmatch( Cities,'toronto','Boston','Beijing','Zurich' ) This expression returns the index of the item that matches the value in the Cities field.

Some of the examples in this topic use inline loads. For more information, see Using inline loads to load data.

Example - Categorize products using mixmatch

Example - Evaluate and classify client data using mixmatch

Example - Load script using mixmatch

Example - Chart expression using mixmatch

Example - Custom sort expression using mixmatch

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!