-
Notifications
You must be signed in to change notification settings - Fork 1
ExistingFile
mtbeek32 edited this page Feb 20, 2024
·
6 revisions
File, Folder and Read functions ExistingFile
- ExistingFile(alternative, filename)
ExistingFile(alternative, filename) results in a string value with the full path name of the filename argument if the file exists and in the alternative argument if the file does not exists.
If no path information is configured, the default path for both arguments is the %ConfigDir% placeholder.
- data items or literal alternative and filename with string value type
6.026
parameter<string> ExistingFile := ExistingFile('c:/tmp/test.txt', 'd:/tmp/test.txt');
result: Updating this item results in the value 'd:/tmp/test.txt' if this file exists and if not in the value 'c:/tmp/test.txt'.
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.