These examples show how to filter records by comparing a field value to a constant string.
Include records where the value of a "name" field exactly matches the string "Pele".
"name == \"Pele\""
"strcmp( name, \"Pele\" ) == 0"
"strncmp( name, \"Pele\", 4 ) == 0"
"match( name, \"Pele\" ) == 1"
Include records where the value of a "name" field does not match the string "Pele". Matches include "Michael Jordan", and "Babe Ruth".
"name != \"Pele\""
"strcmp( name, \"Pele\" ) != 0"
"strncmp( name, \"Pele\", 4 ) != 0"
"match( name, \"Pele\" ) == 0"
Include records where the value of a "name" field is less than the string "Pele". Matches include "Michael Jordan", and "Babe Ruth".
"name < \"Pele\""
"strcmp( name, \"Pele\" ) < 0"
"strncmp( name, \"Pele\", 4 ) < 0"
Include records where the value of a "name" field is less than the string "Pele". Matches include "Pele", "Michael Jordan", and "Babe Ruth".
"name <= \"Pele\""
"strcmp( name, \"Pele\" ) <= 0"
"strncmp( name, \"Pele\", 4 ) <= 0"
Include records where the value of a "name" field is greater than the string "Pele". Matches include "Wayne Gretzky".
"name > \"Pele\""
"strcmp( name, \"Pele\" ) > 0"
"strncmp( name, \"Pele\", 4 ) > 0"
Include records where the value of a "name" field is greater than the string "Pele". Matches include "Pele" and "Wayne Gretzky".
"name >= \"Pele\""
"strcmp( name, \"Pele\" ) >= 0"
"strncmp( name, \"Pele\", 4 ) >= 0"