The NEW XpressDox Version 14 is now available!

Edit Content
Click on the Edit Content button to edit/add the content.

FileExists

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’, and, 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.

Table of Contents