Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > exists

 

exists

Syntax

file("whichFile").exists 

Description

Multiuser Server server-side function; returns 1 (TRUE) if the specified file exists or 0 (FALSE) if the file does not exist on the server computer.

Example

These server-side statements test whether the file Moon.bmp exists in the Images folder on the server computer and displays the result in the server's console window:

if file("C:\Images\Moon.bmp").exists then
	put "Moon.bmp is present" 
else 
	put "Moon.bmp is not present"
end if