I am having an issue in creating rules that involve multiple graphic frames.
I am creating multiple graphic frames to populate a logo that will be uploaded within Digital Storefront, so no Resources in FusionPro. The other graphic frame (I called "Front Image") will consist of a drop list of images to choose from. All images for this frame have been uploaded as Resources. The Image that is chosen in the drop list will determine which Logo graphic frame will be used to show the logo. The logo graphic frames are set at different angles, which is why the Image chosen needs to determine a specific frame for the logo.
Here are the three rules I have attempted so far without any success:
1.
Pic = CreateResource(Field("Logo"), "graphic", true);
if (Field("Front Image")=="pcon_take_control_brochure_037.jpg" && (Pic.exists))
return Pic;
else
return NullResource();
2.
if (Field("Front Image")=="pcon_take_control_brochure_037.jpg")
{
Pic = CreateResource(Field("Logo"), "graphic", true);
if (Pic.exists)
return Pic;
}
return NullResource();
3.
if (Field("Front Image") == "pcon_take_control_brochure_037.jpg")
{
return Field("Logo")
}
return NullResource(“")
Any help or suggestions with this would be wonderful. I’ve been messing with this for a while now.
Thank you!