You are here

productListLength

Variable Type: 
Custom Javascript
Tells us how many distincts products are in the productList
	// returns the number of distinct products in the productList Object
function() {
var productList = {{productList}};
  if (productList === undefined) {
      return 0;
  } else  if (productList === "") {
      return 0;
  } else if (productList === []) {
      return 0;
  } else {
      return productList.length
  }
}