Folder Exists
From UBot Studio
(Difference between revisions)
(Created page with "$Folder Exists is a File Function. The function returns whether or not a folder exists. == Example == <pre> set(#checking, $folder exists("C:\\Users\\Desk...") |
|||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
$Folder Exists is a [[File Functions|File Function]]. The function returns whether or not a folder exists. | $Folder Exists is a [[File Functions|File Function]]. The function returns whether or not a folder exists. | ||
+ | |||
+ | '''Folder To Check:''' The search folder, complete with folder path. | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
− | set(#checking, $folder exists("C:\\Users\\Desktop\\ | + | set(#checking,$folder exists("C:\\Users\\Desktop\\UBot Media\\Documents"),"Global") |
− | + | ||
</pre> | </pre> | ||
+ | |||
If the folder exists, the function will return the value "true". | If the folder exists, the function will return the value "true". | ||
− | [[File: | + | [[File:foldex.jpg]] |
Line 19: | Line 21: | ||
− | [[File: | + | [[File:foldex0.jpg]] |
Latest revision as of 21:42, 29 December 2016
$Folder Exists is a File Function. The function returns whether or not a folder exists.
Folder To Check: The search folder, complete with folder path.
[edit] Example
set(#checking,$folder exists("C:\\Users\\Desktop\\UBot Media\\Documents"),"Global")
If the folder exists, the function will return the value "true".
If the folder does not exist, the function will return the value "false".