Hi,
how can I check if a resource (e.g. image file) exists in the design template (under Resources/Images)?
In my previous question (How to check if local image file exists - Designer - Upland OL User community) resource() function works fine to check if an external image exists but it does not work for internal images.
Regards
Thomas
You can use the resource() function as well, e.g.:
if (resource(“images/logo.png”)) {
//exists
} else {
//does not exist
}
Tried it here and it works!
Please note name of the image is case sensitive.
Ok, I`ve tried it in a control script to skip my section if image does not exist. That works for external images but not for internal images. In a “normal” script it works…