MatchAnyReturnTrue method: SearchFilterGenerator class
Syntax
MatchAnyReturnTrue( )
Description
Use this method to initiate a temporary composite search filter using the | filter connector between filters. Since successful execution of this method returns True, you can use this method in logical expressions.
Parameters
None.
Returns
A Boolean value.
Example
In the following example, the final composite filter consists of two composite filters each consisting of two filters. The individual filters and the composite filters are all joined by the | filter connector:
If &fg.MatchAnyReturnTrue() Then
If &fg.MatchAnyReturnTrue() Then
&fg.LessThanNumber("c", 4);
&fg.GreaterThanNumber("c", 5);
&fg.EndMatchAny();
End-If;
If &fg.MatchAnyReturnTrue() Then
&fg.ContainsWord("d", "x");
&fg.EqualsString("e", "z");
&fg.EndMatchAny();
End-If;
&fg.EndMatchAny();