Show Menu
TOPICS×

TagCondition

Defines search conditions for tag fields.
Syntax

Parameters

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.