Skip to Content
0
Sep 05, 2023 at 10:23 AM

Possible to check if image exists (dynamic image URL)?

50 Views

Hi,
a dynamic material image is shown with code below:

Image_1.setImage("URL_with_material_number.jpg") 

it is possible to check if the URL does not return an error code because the image does not exist?
in console I get error code 500 if the requested file is missing => I have not found a way to use that return code in SAC. I would like to show a dummy image in such cases.
thank you & have a nice day
edgar