Simple conditional values

A simple condition is expressed by the typical pattern operand followed by an equal sign and a value.

Alphabetic values must be in quotation marks. A condition to test for the presence of a token with value MAPLE followed by a street type is:

*? = "MAPLE" | T

The *? = "MAPLE" is a token with a condition and is also an operand.

If the word SOUTH is in the classifications, you can test explicitly for SOUTH by using D = "SOUTH" or for any direction with the standard abbreviation S by using D = "S" for the operand.

You enter numeric values without quotes. The following pattern-action set matches to 1000 MAIN but not to 1001 MAIN.

* ^ = 1000 | ?

The equality operator (=) tests both the standardized abbreviation (if the token is found in the .cls file and has an abbreviation) and the original token value for equality to the operand. Two additional operators are available for testing equality to the abbreviation only or the original token value only. The operators are as follows:

Operator Value
=A= Only tests the abbreviation from the .cls file
=T= Only tests the original token value only

For example, to properly handle AVE MARIA LANE, test for equality with the original token value:

*T =T= "AVE" | + | T
RETYPE [1] ?

As an operand, *T =T= "AVE" ensures that AVE is coded and not another value that maps to the same abbreviation leaving input of AVENUE MARIA unchanged. Similarly, use =A= if you only want a test on the abbreviation.