I have this code that detects item clicked. it gets the item title and works great for checking single item. Problem is I would want it to check from multiple words. “Bottle” or “Box” or other word. I’m a newb in programming.
$w( “#gallery2” ).onItemClicked( (event) => {
if ( event.item.title === FilterValue) {
console.log( “Match” );
}})
let FilterValue = “Bottle”