The HotDocs Computation Archive
Get Extra Help

0022 - Multiple REPEAT Filters

Description:

How to use multiple FILTERs for a single REPEAT.


• Code •

Computation CombinedFilters-c:

FilterOne AND
FilterTwo AND
FilterThree
 
 
Use CombinedFilters-c as the filter
for your REPEAT, as so:

REPEAT RepeatedDialog
   FILTER CombinedFilters-c
   ...
END REPEAT

• Explanation •

A filter is simply a computation variable that returns TRUE/FALSE. By creating a single computation, such as CombinedFilters-c above, that calls all of the desired filter computations, you can determine whether they are all TRUE or not. If they are all true, your combined filter computation will return TRUE. Otherwise it will return FALSE.