File Exists
From UBot Studio
(Difference between revisions)
| (3 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
$File Exists is a [[File Functions|File Function]]. The function returns whether or not a file exists. | $File Exists is a [[File Functions|File Function]]. The function returns whether or not a file exists. | ||
| − | '''File To Check:''' The search file. | + | '''File To Check:''' The search file, complete with file path and extensions. |
| + | |||
| + | ''Please note that the returned values '''True''' and '''False''' are both capitalized.'' | ||
== Example == | == Example == | ||
| Line 11: | Line 13: | ||
| − | If the file exists, the function will return the value " | + | If the file exists, the function will return the value "True". |
| − | [[File: | + | [[File:fileex.jpg]] |
| − | If the file does not exist, the function will return the value " | + | If the file does not exist, the function will return the value "False". |
| − | [[File: | + | [[File:fileex0.jpg]] |
Latest revision as of 13:22, 26 November 2014
$File Exists is a File Function. The function returns whether or not a file exists.
File To Check: The search file, complete with file path and extensions.
Please note that the returned values True and False are both capitalized.
[edit] Example
set(#checking, $file exists("C:\\Users\\Desktop\\Miscellaneous\\summaries.txt"), "Global")
If the file exists, the function will return the value "True".
If the file does not exist, the function will return the value "False".

