Description
The
TestFilter has dynamic ports for testing features, equivalent to a string of
Tester transformers (or a Tcl CASE command)
Example
In this workspace from the FME Desktop training course, prior to the TestFilter transformer we had to use a series of Tester transformers to achieve the aim of dividing up the data:
Tester Example:
Workspace showing example use of Tester transformers:

TestFilter Example:
However, with the TestFilter we can replace all of these with just one transformer:
Workspace showing example use of TestFilter transformer:
Of course in this example we could just have easily used the
RangeFilter transformer, but only because we're dealing with sequences of numbers. The TestFilter is indispensable when handling non-sequential numbers or tests which require composite conditions (eg A=4 or B=3).