Skip to main content
  • Select fields
  • Filter conditions
  • Package variables
You can use the expression editor to write expressions. You can also directly enter the expression in the field, without using the editor. To use the expression editor:
1
Open the required component (from one of the components listed above).
2
In the field you wish to edit, click the edit icon.
3
Type in an expression.
4
A list of field names (available in this component), functions and data types appears.
5
Scroll to the required item and click to add it to the expression.
Read more:

Data Types

You can use the following data types in expressions. If you want to convert one data type to another, you can cast it, as long as the conversion is supported. For example, suppose you have an integer field, myint, which you want to convert to a float. You can cast this field from int to float using this syntax: (float)myint. See the Cast Operators section below for more information.

Nulls

Null values represent a value that is unknown or non-existent. Note that is different than an empty string and a null string is not equal to an empty string. Nulls can occur naturally in the data source or can be the result of an operation, such as division by zero or outer join. A null value in expression data has these impacts: Null values can be converted to a data type, just like any other expression. For example, int(null) casts to integer.

Functions

To view full list of functions click here. You can use functions in components to further manipulate the results output by a component. Functions can be added to any component field that can be edited directly (not just selected from a dropdown list). The best method to add functions is by using the expression editor, which provides onscreen information on functions and performs validation on the completed expression. These functions are available to transform the field. Use a function that matches the data type of the field. Note the following when using the function.
  • Function names are case sensitive and therefore have to be entered exactly as shown in the table.
  • Place the cursor at the start of the field you want to apply the function and then select the function from the list or enter the function name directly. Then add parentheses and additional parameters as shown in the syntax.

Operators

Arithmetic operators are applied to any numeric fields and constants to derive a numeric expression. Available operators are: There are special String functions to derive a string from a string expression. Examples of operators are: Comparison operators are used in conditions: Null operators are used in conditions: Boolean operators are applied to a condition to derive a different result. Available operators are: Dereference operators are applied to complex data types to extract values from them:

Cast Operators

Cast operators are used to cast or convert data from one data type to another, as long as conversion is supported. For example, suppose you have an integer field, myint, which you want to convert to a float. You can cast this field from int to float using (float)myint. These are the cast conversions that are supported. Numeric includes the numeric data types: integer, long, float and double. Implicit casts to convert data to the target data type are performed where the cast conversion is supported. In the statement field1+1, field1 is converted to integer, if that conversion is supported. In some cases there are functions to cast that data type. These functions are used to cast a datetime field to Chararray (string) or a chararray to datetime: In addition to the string datetime casts, these functions are used to cast a string to one of the numeric formats:

Conditions

Conditions can be specified in expressions using either:

Case

Specifies outcomes based on either the value of an expression or based on conditions.
The syntaxes are:

Examples:

First syntax example:
If the value of the field City is “Paris” the above example returns the string “Baguette”.
If the value of the field City is “London” the above example returns the string “Fish and chips”.
Any other case, it returns “Coffee”.
Second syntax example:
If the variable A is larger than B, the string “A is greater than B” is returned.
If the variable B is larger than A, the string “B is greater than A” is returned.
Otherwise, the string “A and B are equal” is returned.
Note:If a WHEN condition compares a value to NULL, NULL is returned and the following conditions are ignored. Consider using COALESCE to eliminate NULL in a field used in a WHEN condition.

Bincond

Specifies binary outcomes based on the value of an expression, but is more limited and not as readable as the Case statement. The syntax is:

Example:

Returns the string: “funny but true”.
Note:If an expression compares a value to NULL, NULL is returned.
Last modified on May 25, 2026