The INSTORECATEGORY function returns true if the current product is found in the specified category (or in a child category under the specified category).

 

#INSTORECATEGORY(category_id)

 

Arguments:

Returns:

 

Example:

 

WHERE #contains(ebay.title, 'Odd')

AND #INSTORECATEGORY(43)

EVAL store.title

 

The Where command populates the Working Set with only products where the text "Odd" appears in the eBay Title. The And command command removes any products from the working set that are not in category 43 or in a child of category 43. The Eval command command displays the title of each product that remains in the working set.