exists

Scott Rossi scott at tactilemedia.com
Sat Dec 11 18:05:21 EST 2010


Recently, Richmond wrote:

> I wonder why this does NOT work:
> 
> if exists(file: "ABC.jpg") is true then
>     ---do something
> end if
> 
> how do I check if a file is present or not?


I use this form:

 if there is a file "filepath.jpg" then
   -- do something
 end if


Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design






More information about the use-livecode mailing list