Script to insert image into container field
I have 2 container fields in my database. In the first field, called "high res", I insert a high resolution image. In the second field, called "low res", I insert a low resolution image. The image is of the same thing. I want to create a layout using these images as follows:
If the high res field contains an image, then I want the high res image inserted. If the high res field does not contain an image, then I want the low res image inserted. I'm guessing I need to write a script to do this but I couldn't figure out what script commands to use. I would appreciate some guidance in how to write a script to do this.