Back Forward When form
Completing the Advanced tab

About When condition rules

Use the Advanced tab for rules that combine comparisons using OR and NOT operations as well as AND operations. (Use the Conditions tab and leave this tab blank if the logic can be presented completely with AND operations.)

Specify details about comparison in the array, and enter a logic statement combining all the comparisons. After you save the rule form, you can review the system-generated Java code for this rule, and test the rule.

CautionAfter you or anyone has typed in the Advanced tab of a when condition rule, you must continue with the Advanced tab; you can no longer use the Conditions tab for that rule.

Field

Description

Check Condition(s) and Return True or False  
Label

Enter a unique number or text value to serve as an identifier of this row, such as A, B, C. These are used in the Logic of Table elements. Do not choose and, or, or not as labels.

You can enter // as a label to mark this row as a comment; a condition that is not evaluated.

Field Name

SmartPromptEnter a property reference. Alternatively, you can enter a literal constant or a more complex expression.

If you entered a simple property reference, you can click the pencil button (Pencil) to open the property rule.

Operation

Select a comparison to perform between the value computed in the Field Name field and the value computed from the Value field.

Select Equal to require a matching value.

Choose Field Name and the Value values with the same mode and type. If not, the system attempts to convert the Value type to the Field Name type to perform the comparison.

NoteThis evaluation uses the Java compare() function. You cannot test for Java object identity ("==") here.

Value

Enter an expression for a value to be compared to that of the Field Value. See About Expressions.

Logic of Table Elements  
Logic

Optional. Enter the Boolean logic operations to be performed at runtime on the rows in the Selection Table, to compute a True or False result.

You can use and, or, and not in the statement. You can use parentheses to control the order of evaluation.

For example, if the table contains four labels A, B, C, and D, you can enter:

(A and B) or (C and not D)

When you save the rule, if the form contains only one test row, the system inserts the label for that test row here. If you have more than one row, the system defaults to requiring all rows to be true. If that's not what you want, revise the statement and save again.

Backward Chaining  
Skip this rule

AdvancedSelect to cause this rule to be ignored if encountered during a backward-chaining operation. Properties mentioned in this rule are assumed to not contribute to the missing property value. When select, this can speed up goal-seeking processing.

This field has no effect in other situations.

zzz About When Condition rules