TagCondition tagcondition

Defines search conditions for tag fields.

Syntax

Parameters section-2fc9bea56b6d4b72b80d4f04c5f9b862

Name
Type
Description
fieldHandle
xsd:string
Tag field handle.
op
xsd:string

Depends on the tag field type and whether the value or valueArray field is used.

  • If value is passed, op must be the string constant Matches. The condition matches any asset that is associated with the tag value.
  • If valueArray is passed, the op field can be the constant MatchesAny for either single or multivalued tag fields. A MatchesAny condition matches any asset that is associated with at least one of the tag values in valueArray.
  • For multi-valued tag fields, the op field can be set to the constant MatchesAll with the valueArray field. In this case, the condition only matches assets that are associated with all of the tag values in valueArray (possibly in addition to other tag values).
value
xsd:string
A matching value.
valueArray
types:StringArray
Multiple matching values.
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681