|
|
To evaluate properties in an expression using an operator
- Select the command for which you want to create an expression.
- In
the expression area, do one of the following:
- Enter a property name manually.
- Click Property. In the Property list, select a property.
- Enter an operator using one of these methods:
-
You can use the following types of operators:
-
Math Operators
For example, this expression could be used to label repair locations with the total amount spent on parts and labor for a pipe repair project:
-
Comparison Operators
For example, to find parcels whose assessed value is $100,000 or more, use this expression:
-
Logical Operators
For example, to find only parcels that have a value for the PARCEL_OWNER property, use this expression:
-
Math Operators
- Select or type the value to evaluate.
- To
create a complex property evaluation, insert an AND or OR operator,
and then insert another property, operator, and value combination.
Every operator must be preceded by a property. For example, to find parcels whose last purchase date is after 1990 and before 2005, the expression must look like this:
- Click OK to apply the expression.
To evaluate properties in an expression using a function or option
- Select the command for which you want to create an expression.
- In
the expression area, do one of the following:
- Type a function or option for this property.
- Select
a function or option from a menu.
You can use the following types of functions:
- Math Functions
For example, to find the square root of the value representing parcel area, use this expression:
- Numeric Functions
Numeric functions are available from the Math Functions menu. For example, to round the assessed value of parcels down to the nearest lower whole dollar, use this expression:
- Text Functions
For example, to convert pipe names to all uppercase letters, use this expression:
- Date Functions
For example, to add one month to the start date for a project, use this expression:
You can use the following types of options:
- Geometric Options
For example, to find the perimeter value for parcels, use this expression (when Parcels is the current feature or layer):
NoteThe Geometry property may have a different name in your data store. It is always listed under Geometry Properties in the Property list. Insert the property from the list. Do not change it manually or substitute a value for this property. - Conversion Options
For example, to create label text that displays “Unoccupied” if the property Occupied is null, use this expression:
- Aggregate Options
Aggregate functions are not available from a menu, but you can type them in. For example, to find the median value of all parcels, use this expression:
- Math Functions
- In
your expression, do one of the following:
- Enter a property name manually.
- Click Property. In the Property list, select a property.
- Select or type the value to evaluate.
- To create a complex property evaluation, insert an AND or OR operator, and then insert another operator, property, and value combination.
- Click OK to apply the expression.