About expressions

In most cases, an expression is a comparison between numbers or other data, like a mathematical formula.

For example, when you perform a Mass Update process, you want to only include employees with an original hire date before June 1, 2023. To do this, use the following expression:
PE.P_ORIGHIRE < {06/01/2023}

Parts of expressions

Usually, the expression compares a database field and a value. It consists of three parts:

Rules for using field names in an expression or function

  • All field names must be spelled correctly. See the Data Dictionary for correct spellings.

    Important! Use the correct capitalization. For example, SALESREP is not equal to SalesRep. To avoid capitalization problems, you can use the UPPER function when making comparisons. For example, the following expression tells the system to convert the job code to upper case before making the comparison: UPPER(PE.P_JOBCODE)="SALESREP"

  • Alphanumeric (character) data must be surrounded by quotes.
  • Dates must be enclosed in braces, i.e. {06/01/2023}.
  • If you are building a compound expression (when you need more than one condition to be met), the conditions must be separated by the word AND or by the word OR. You should use parentheses in complex conditional expressions. See Building compound expressions.