you could have a file action to open that file for read and in the results html put this:
 
<@assign local$FileExists value="1">
 
and in the error html (since if theres an error, chances are its cause the file doesnt exist):
 
<@assign local$FileExists value="0">
 
then your if for the delete would be:
 
VALUE=     @@local$FileExists
OPER. =     =
VALUE =     1
 
----- Original Message -----
From: Gerard
Sent: Sunday, February 02, 2003 2:47 PM
Subject: Fw: Witango-Talk: Check if File exist

 
----- Original Message -----
Sent: Sunday, February 02, 2003 5:27 PM
Subject: Witango-Talk: Check if File exist

Hi,
 
I have an action that deletes a "File", a .gif file specifically.  The problem is that when there is no file to delete I get an error message.  I decided to use an "if" Action to check to see if the file exists, using the values below.  This is one of many variations that I've tested, but no luck.
 
VALUE=      <@WEBROOT><@APPFILEPATH>images/<@ARG PictureName_uid1>
OPER. =     <
VALUE =     0
 
If you have a suggestion, it would be greatly appreciated.
 
Thanks,
Gerard
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to