ConditionType

View as Markdown

Condition types enumeration.

Which operators work depends on the expression and the value type. For example, the any-field expression (full-text search) supports only CONDITION_TYPE_CONTAINS. An unsupported combination fails with "Invalid search condition."

Full nameMFiles.ConditionType
Proto filemfiles/enums.proto

Values

NameNumberDescription
CONDITION_TYPE_UNINITIALIZED0Uninitialized.
CONDITION_TYPE_EQUAL1Must be equal to the value. With a multi-select lookup value, matches if the object has any of the listed items. With a value whose is_null_value is true, matches objects whose property is empty.
CONDITION_TYPE_NOT_EQUAL2Must be not equal to.
CONDITION_TYPE_GREATER_THAN3Must be greater than (>).
CONDITION_TYPE_LESS_THAN4Must be less than (<).
CONDITION_TYPE_GREATER_THAN_OR_EQUAL5Must be greater than or equal to (>=).
CONDITION_TYPE_LESS_THAN_OR_EQUAL6Must be less than or equal to (<=).
CONDITION_TYPE_CONTAINS7Contains the given text (similar to LIKE '%xyz%'). The operator of a full-text (any-field) condition.
CONDITION_TYPE_DOES_NOT_CONTAIN8Does not contain the given text string (similar to NOT LIKE '%xyz%').
CONDITION_TYPE_STARTS_WITH9Starts with the given text string (similar to LIKE 'xyz%').
CONDITION_TYPE_DOES_NOT_START_WITH10Does not start with the given text string (similar to NOT LIKE 'xyz%').
CONDITION_TYPE_MATCHES_WILDCARD_PATTERN11Matches the given DOS-style wildcard pattern (such as '*.txt').
CONDITION_TYPE_DOES_NOT_MATCH_WILDCARD_PATTERN12Does not match the given DOS-style wildcard pattern (such as '*.txt').
CONDITION_TYPE_IS_MISSING13Is missing. Rejected for property value conditions; to find an empty property, use CONDITION_TYPE_EQUAL with an unset value.
CONDITION_TYPE_IS_NOT_MISSING14Is not missing?
CONDITION_TYPE_STARTS_WITH_AT_WORD_BOUNDARY15Starts with the given text string at a word boundary (similar to LIKE 'xyz%', but evaluated at each word beginning).
CONDITION_TYPE_CONTAINS_ANY_BITWISE16Contains any of the bits of the given number. Treats its operands as a vector of bits rather than a single number.
CONDITION_TYPE_DOES_NOT_CONTAIN_ANY_BITWISE17Does not contain any of the bits of the given number. Treats its operands as a vector of bits rather than a single number.
CONDITION_TYPE_MATCHES_ALL18Full-text search matching all search terms. Not for the any-field condition, which rejects it: use CONDITION_TYPE_CONTAINS with FTSFLAGS.search_all_words instead.
CONDITION_TYPE_MATCHES_ANY19Full-text search matching any search term. Not for the any-field condition, which rejects it: use CONDITION_TYPE_CONTAINS with FTSFLAGS.search_any_words instead.
CONDITION_TYPE_MATCHES_BOOLEAN20Full-text search matching a Boolean statement.

Used in fields