2022.2

Table Of Contents
If the folder or file count value is invalid and the task is used as Input task, the process does not run. If it
is a Condition task, it returns False. No error is generated.
Output
Job Information definitions
When used as Input task, the File Count task sets the following Job Info variables.
l
%1 - FolderName. The target folder.
l
%2 - Mask. The specified mask.
l
%3 - FileCount: The specified file count.
Task properties
General Tab
l
Target folder: Enter the full path of the folder from which the input files are to be taken, or use
the Browse button to select it. Note that subfolders are not processed.
This is a variable property field. You can use any combination of text, variables and data selec-
tions; see "Variable task properties" on page289.
l
Masks: Enter a single or multiple file names or use file name masks (see "Masks" on page291).
Multiple filters are separated by a semicolon (e.g. *.csv;.xls*).
This is a variable property field. (See "Variable task properties" on page289.)
l
Treat as regular expressions: When ticked, the contents of the Mask field are deemed to
be a regular expression . You can specify multiple masks based on regular expressions,
separating the regular expressions by a semicolon.
Please refer to Regular Expressions for more information.
Note: No Variable Data can be used inside this field if the Treat as regular expressions
option is ticked. The percent sign, the curly brackets and the period are all key elements of
the RegEx syntax, therefore they cannot be mixed and matched with Workflow variable
data syntax (e.g. %1, ${global.myvar}, etc.). Also, there is no validation of the RegEx being
specified.
l
File count: Select whether the condition is to check if the file count is equal to, less than, greater
than, less than or equal to, or greater than or equal to the specified value.
l
Value: Enter the desired file count. This is a variable property field. (See "Variable task prop-
erties" on page289.)
Page 303