You can use expressions to evaluate properties. Here are some examples:
You can enter property names directly into an expression, or you can select them from the list.
If you enter a property name that is not in the list, the operation may issue a warning. However, if that property exists in your data store, the expression may still be valid when it is run.
You can also view and insert the valid values for any listed property.
The syntax for an expression that evaluates a property is slightly different, depending on whether you use an operator, a function, or an option. For an operator, the basic syntax is PROPERTY Operator Value. For functions and options, the basic syntax is Function (PROPERTY).
To evaluate properties in an expression using an operator
You can use the following types of operators:
For example, this expression could be used to determine the total amount spent on parts and labor for a pipe repair project:
For example, to find buildings whose assessed value is $100,000 or more, use this expression:
For example, to find only buildings that have a value for the TERMINATION_DATE property, use this expression:
Precede every operator with a property. For example, to find buildings whose creation date is after 1990 and before 2005, the expression must look like this one:
To evaluate properties in an expression using a function or option
You can use the following types of functions:
Math operators perform arithmetic functions. For example, to round the bank width value for water features up to the next whole number and then find water features whose rounded bank width is more than 4 feet, use this expression:
Numeric functions operate on properties whose valuues are numbers. For example, to round the height of buildings down to the nearest lower whole number and then find buildings whose rounded hieght is less than 8 feet, use this expression:
Text functions operate on textual values. For example, to convert pipe names to all uppercase letters, use this expression:
Date functions operate on date values. 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 may include Area, Length2D, M, X, Y, and Z (depending on the data source). For example, to find buildings whose area is greater than 10,000 square feet, select the Buildings feature class and use this expression:
Conversion options change values. For example, to display “None” if the property USE_TYPE is null, use this expression: