XpressDox Help Center

Use Google To Find Help Fast, e.g. xpressdox choosefromlist


Press Getting Started in the XpressDox toolbar for basic template development
Watch the tutorial videos
View command help from list of commands
Press F1 for help on a command in the Command Editor
Email support@xpressdox.com for assistance

The FileExists Function


The FileExists Function

This function can be used to test the existence of a file.

An example would be something like:

«SetV('fileName',concat(Directory,'\ExtraTemplate.xdtpx'))»
«If(FileExists(GetV('fileName')))»
«MergeTemplate(GetV('fileName'))»
«End(if exists)»

This will construct the name of a file in the XpressDox variable named’fileName’, then, if the file exists, issue the MergeTemplate command for it.  Without the test for existence, if the file did NOT exist, the MergeTemplate would fail with an error message.