The HAS function returns true if a name or name/value is found inside a set.
#HAS(set, name)
#HAS(set, name, value)
Arguments:
- set: The set to search.
- name: The name to find in the set.
- value: The value to find in the set.
Returns:
- True if the name (or name and value) is found in the set. Otherwise, false is returned.
Example:
WHERE ebay.active
EVAL #HAS(ebay.itemspecifics, 'Brand')
EVAL #HAS(ebay.itemspecifics, 'Brand', 'Estes')
The Where command populates the Working Set with only products that are active on eBay. The first [[Batch Update Tool EVAL Command | Eval command] will display 1 (true) if the Item Specifics for the product contain a name/value pair where the name is "Brand" (the comparison is not case-sensitive). The second [[Batch Update Tool EVAL Command | Eval command] will display 1 (true) if the Item Specifics for the product contain a name/value pair where the name is "Brand" and the value is "Estes."