We have this in jrElastic's list template in the jrStore module: {if strlen($item._product_images.0)}. Does this imply >0?
Also, let's say the product is a t-shirt and I'm uploading a front and back image. I upload the front first and the back 2nd. On the form page, the front appears first, the back 2nd. On the product page the front is displayed with a (2) showing more than one image is available. I can click on it and the front shows first and the back 2nd.
However, on a list page, the back side is displayed. Is $item._product_images.0 the last image uploaded? I believe you would most likely want the same image displaying in a list as the primary image which is displayed on the product page.
updated by @blindmime: 03/21/17 05:33:25PM