From WikiChip
Difference between revisions of "mirc/identifiers/$exists"
(→See Also) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''$exists''' identifier can be used to determine whether a specified file, or folder, exists. If the file/folder exists, or does not exist, the identifier will return {{mIRC|$true}} or {{mIRC|$false}}, respectively. | + | {{mirc title|$exists identifier}}The '''$exists''' identifier can be used to determine whether a specified file, or folder, exists. If the file/folder exists, or does not exist, the identifier will return {{mIRC|$true}} or {{mIRC|$false}}, respectively. |
+ | |||
== Synopsis == | == Synopsis == | ||
Line 14: | Line 15: | ||
The above executed line should return the following: | The above executed line should return the following: | ||
− | < | + | <source lang="mIRC">$true</source> |
== Compatibility == | == Compatibility == | ||
{{mIRC compatibility|4.6}} | {{mIRC compatibility|4.6}} | ||
== See Also == | == See Also == | ||
− | {{mIRC|$isfile}} | + | * {{mIRC|$isfile}} |
− | {{mIRC|$isdir}} | + | * {{mIRC|$isdir}} |
− | {{mIRC identifier list}} | + | * {{mIRC identifier list}} |
− | [[Category:mIRC identifiers]] | + | [[Category:mIRC identifiers|exists]] |
Latest revision as of 13:06, 20 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $exists identifier can be used to determine whether a specified file, or folder, exists. If the file/folder exists, or does not exist, the identifier will return $true or $false, respectively.
Synopsis[edit]
$exists(File/Folder)
Parameters[edit]
File/Folder The file or folder to check for
Example[edit]
Echo to the active screen if mirc.ini exists
//echo -a $exists(mirc.ini)
The above executed line should return the following:
$true
Compatibility[edit]
Added: mIRC v4.6
Added on: 07 Sep 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC identifier list