Defines an IF...THEN...ELSE... conditional step looking for the existence of a file or a directory.

The IfFileExistsThenElse step is one of the Convertigo Sequencer conditional steps. This step contains two child steps (Then and Else) which are executed depending on whether the file or directory defined through the Source property exists or not:

Then step and child steps are executed when the source file or directory exists.
Else step and child steps are executed when the source file or directory does not exist.

Note: In Convertigo Studio, when an IfFileExistsThenElse step is created in a sequence, it can be easily replaced by an IfFileExists, using the right-click menu on the step and choosing the option Change to > IfFileExists. The Source property remains the same and the steps present in the sub-steps are:

• steps present in the Then step are moved to the IfFileExists,
• steps present in the Else step are deleted.

Property Type Category Description
Comment String standard Describes the object comment to include in the documentation report.
This property generally contains an explanation about the object.
Is active boolean standard Defines whether the step is active.
Source JS expression standard Defines the path of the file or directory which existence has to be checked.
This property is a JavaScript expression that is evaluated during the sequence execution and gives the path of the file or directory which existence has to be checked.
This path is either absolute or relative to Convertigo environment. Relative paths starting with:

./ are relative to Convertigo workspace,
.// are relative to current project folder.
Output boolean expert Defines whether the XML generated by this step should be appended to the resulting XML.
Set this property to true to add the step’s resulting XML to the sequence’s output XML (default value for steps generating XML). Set this property to false to prevent the steps’s XML result to appear in the sequence’s output XML.
Setting this property to false does not prevent the step’s generated XML from being used as a source by other steps.