These examples show how to filter records by comparing against the first N characters of a field while doing case insensitive string comparisons.
Include records where the first character in a "name" field matches the string "M" or "m" while doing a case insensitive comparison. Matches include "Michael Jordan", "Michael Schumacher", and "Muhammad Ali".
"strnicmp( name, \"m\", 1 ) == 0"
"matchi( name, \"m*\" ) == 1"
Include records where the first character in a "name" field does not match the string "M" or "m" while doing a case insensitive comparison. Matches include "Babe Ruth", "Pele", and "Wayne Gretzky", but not "Michael Jordan", "Michael Schumacher", and "Muhammad Ali".
"strnicmp( name, \"m\", 1 ) != 0"
"matchi( name, \"m*\" ) == 0"
Include records where the first character in a "name" field is less than the string "M" or "m" while doing a case insensitive comparison. Matches include "Babe Ruth".
"strnicmp( name, \"m\", 1 ) < 0"
Include records where the first character in a "name" field is less than or equal to the string "M" or "m" while doing a case insensitive comparison. Matches include "Babe Ruth", "Michael Jordan", "Michael Schumacher", and "Muhammad Ali".
"strnicmp( name, \"m\", 1 ) <= 0"
Include records where the first character in a "name" field is greater than the string "M" or "m" while doing a case insensitive comparison. Matches include "Pele" and "Wayne Gretzky".
"strnicmp( name, \"m\", 1 ) > 0"
Include records where the first character in a "name" field is greater than or equal to the string "M" or "m" while doing a case insensitive comparison. Matches include "Michael Jordan", "Michael Schumacher", "Muhammad Ali", "Pele" and "Wayne Gretzky".
"strnicmp( name, \"m\", 1 ) >= 0"