Index
Main Menu
Beginner Course
Learning the Basics
Knowledge Base
Visit our User Forum for discussions & solutions
FileExists
FolderExists
In document automation, there are times when your template needs to check whether a particular folder exists. This can be useful when: Saving generated documents into specific client folders. Checking for the presence of required directories before proceeding. Saving to external file systems (such as NetDocuments/iManage). XpressDox provides the...
FileExists
This function can be used to test the existence of a file. Example 1: «SetVr('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,...
Loading...