Working with Statements
Statements control the logic of an expression.
There are two types of statements:
To insert a statement:
- From the Statements section of the palette, drag a statement to the editor, or click and select the statement from the drop down list.
You can insert a statement anywhere there is a blue arrow in the editor. When you add a statement to the editor, a vertical blue bar is added to the editor to indicate a statement block. You can nest statements within other statements, and each statement is indicated by a blue bar.
- Select objects and operators for your expression. After you select an object, you can select that object's attributes or methods. See Working with Objects and Operators
- To remove a statement block, click in the statement block and select Remove
When you begin selecting fields in a statement, the expression term is outlined in red to indicate that it is not valid. You cannot save an expression until all of the statements in the expression are valid, as follows.
If
statements must evaluate to a Boolean value.Return
statements must return the expected data type:- For property transformations and derived properties, the expected data type is the data type of the property that is being transformed or derived. See Properties.
- For custom validations, the expected data type is a Boolean value.