$isfile

From Scriptwiki
Revision as of 11:37, 16 May 2007 by Ollie (talk | contribs) (page created)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns informations on whether or not a file exists.

$isfile(file)

Returns $true if the file exists, otherwise it will return $false

Examples

alias exists? {
 if ($isfile($1)) { return file exists! } | else { return file doesn't exist }
}

$isdir(C:\program files\mirc\mirc.ini)

See also

$isdir to check if a directory exists.