[ic] check image available

ic at 3edge.com ic at 3edge.com
Mon Mar 19 11:32:52 EST 2007

J van Dijk-BV Kunststoffenindustrie Attema writes: 

> How can i check (in perl within a component) if an image in the filesystems exists ?
> I tried to use stat, but gives an error.
> If an image is not (yet) available, we want to show an "image not available" image.
> Thanks for any hints, Jan

Not entirely sure what you mean with 'in perl within a component', but I can 
think of the following : 

if (-f  FILENAME) {
else {
 does not exist;

Within IC something like:
[if type="file" term="images/filename.jpg"]
file exists
file does not exist



More information about the interchange-users mailing list