Declare
Expressions form
|
On this tab, record the computations for the target property identified in the key.
Click any condition or a comparison to enable controls.
Control |
Action |
open icon |
Click to review a property rule (for a field that contains a property reference). If the property does not yet exist, click to create a new property rule. |
expression selector |
Click to display a drop-down list of all boolean expressions. |
row buttons ,, and |
Select a condition to enable. Then click the , , or buttons to add a new condition before or after the selected entry, or to delete the selected entry (Equivalently, use the Insert , Shift+Insert , and Delete keys). To re-order conditions, you can use the Windows drag-and-drop operation. If OR is selected as a boolean operator in an expression, click ,, or buttons to add a new comparison before or after the selected entry or to delete the selected comparison (Equivalently, use the Insert , Shift+Insert , and Delete keys). To re-order comparisons, you can use the Windows drag-and-drop operation. |
relate PDN resources button
|
Click the button to view Pega Development Network articles that are related to expressions. |
Display Name Display Label |
When reviewing this tab, you can see a presentation using either property names or the Short Description ( |
Modifying expressions with drag and drop operations
To move a condition or a comparison to a different location, click and drag the small circle located to the left of the entry.
To copy a condition or a comparison, drag the entry while
holding down the CTRL
key.
Field |
Description |
||||||||||||||||||||||||||
Whenever inputs change | |||||||||||||||||||||||||||
If |
Click the button to select a boolean expression from the drop-down list. The form changes to reflect the expression selected. Most expressions require parameters that may themselves be expressions. Use SmartPrompt to select a property as a parameter. |
||||||||||||||||||||||||||
"Boolean Operator" |
Depending on the expression selected, choose THEN, OR, or AND operator. If the OR operator is selected, you may add comparisons to the expression. |
||||||||||||||||||||||||||
Set Property To |
Select a computation type. The choices available depend on the type of the Target Property.
|
||||||||||||||||||||||||||
(no label) |
Enter an expression or identify a rule that computes a value for the Target Property. Based on the Set Property To field, complete this field:
|
||||||||||||||||||||||||||
using entries in which |
Optional. This field appears only when you
select Enter an expression that evaluates to true only for those elements of the aggregate property that you want include in the computation. Leave blank to include all the elements. Typically, the expression involves a comparison and a property within the aggregate property, for example: .Color!="White" where .Color is an embedded property within a
|
||||||||||||||||||||||||||
Otherwise Set Property |
This expression determines the target property value when the conditions array is empty or all the condition rows evaluate to false. Complete both fields. |
||||||||||||||||||||||||||
(no label) |
Select an expression type such as |
||||||||||||||||||||||||||
Expression |
Enter an expression that computes a value for the Target Property. You can type the expression directly, or use the Expression Builder. For guided help with composing expressions, click the magnifying glass icon (). In the expression, the page that matches the class of the Applies To key part of this rule. Your expression can reference properties on other pages using a page name and property reference, but these properties are not change-tracked. |