File Exists

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "$File Exists is a File Function. The function returns the list of all files within a given directory. You can set the function to return all files with fil...")
 
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
$File Exists is a [[File Functions|File Function]]. The function returns the list of all files within a given directory.
+
$File Exists is a [[File Functions|File Function]]. The function returns whether or not a file exists.
  
You can set the function to return all files with file paths included or only the name of the files with their extensions.
+
'''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 10: Line 12:
 
</pre>
 
</pre>
  
If the file exists, the function will return the value "true".
 
  
[[File:fileexists0.jpg]]
+
If the file exists, the function will return the value "True".
 +
 
 +
 
 +
[[File:fileex.jpg]]
 +
 
 +
 
 +
 
  
 +
If the file does not exist, the function will return the value "False".
  
If the file does not exist, the function will return the value "false".
 
  
[[File:fileexists.jpg]]
+
[[File:fileex0.jpg]]

Latest revision as of 14: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".


Fileex.jpg



If the file does not exist, the function will return the value "False".


Fileex0.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox