This sample script selects an image based upon a field value using a nested if statement.
The script evaluates the value for the field "country" and specifies the certification image that should be used for the image field "cert_image". If the value of "country" does not match the defined values, no image is printed.
Fields required on the label
Create a label with the above fields, then enter the following code for the script_field script.