Project

General

Profile

$exists » History » Version 2

Per Amundsen, 02/16/2023 09:39 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$exists(file|dir)*
4
5
Returns [[$true]] if a file or dir exists otherwise [[$false]].
6
7
_See also [[$isfile]] [[$isdir]]._
8
9
*Parameters*
10
11 2 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| file<notextile>|</notextile>dir | File or directory. |
14 1 Per Amundsen
15
*Example*
16
17
<pre>
18
; Check if file exists
19
if ($exists(c:\windows\notepad.exe) file exists
20
21
; Check if directory exists
22
if ($exists(c:\windows) directory exists
23
</pre>