Folder Exists

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
 
(2 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\\Miscellaneous"), "Global")
+
set(#checking,$folder exists("C:\\Users\\Desktop\\UBot Media\\Documents"),"Global")
 
+
 
</pre>
 
</pre>
  
Line 12: Line 13:
  
  
[[File:folderexists0.jpg]]
+
[[File:foldex.jpg]]
  
  
Line 20: Line 21:
  
  
[[File:folderexists.jpg]]
+
[[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".


Foldex.jpg



If the folder does not exist, the function will return the value "false".


Foldex0.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox