Hi,
This is probably really easy but I can not figure it out.
- I have a datafile called “dogs.json”
- Some dogs have 2 images associated with them, some dogs have only 1 image.
“image1”: “poodle1.jpg”,
“image2”: “poodle2.jpg”,
or
“image1”: “bulldog1.jpg”,
- I’m trying to find the correct method to show something if “image2” exists and show nothing if it does not (I’m trying to build an image carousel).
Any help is greatly appreciated, as I’m going round in circles!
Thanks.