Skip to content

ExistingFile

Jip Claassens edited this page Feb 4, 2026 · 8 revisions

File, Folder and Read functions ExistingFile

syntax

  • ExistingFile(alternative, filename)

definition

ExistingFile(alternative, filename) results in a string value with the full path name of the filename argument if the file exists, and it returns the alternative argument if the file does not exist.

If no path information is configured, the default path for both arguments is the %ConfigDir% placeholder.

applies to

since version

6.026

example

parameter<string> ExistingFile := ExistingFile('File does not exist', 'd:/tmp/test.txt');

result: Updating this item results in the value 'd:/tmp/test.txt' if this file exists, and if not, the value 'File does not exist'.

Clone this wiki locally