### Logic Tool Parameters

Click the Logic Expression field to start building a logic expression.

Click the + to show the Logic Element Types menu.

The Logic Element Types menu shows a list of logic elements that can be added to the expression: Tool Output Value, Operator, Numeric Value, and Group.

When you select a logic element, that element appear in the Logic Expression popup. You can now add further elements to build the logic expression.

##### Value

In the example below, Value has been selected from the Logic Element Types menu, and the Status (pass/fail) of the Presence/Absence Tool from the vision job has been added to the logic expression.

##### Operator

Click the + button again to add another element to the logic expression. In the example below, Operator has been selected from the Logic Element Types menu. The operators AND, OR, =, >, > =, <, and < = can be added to the logic expression using the Operator dropdown menu.

##### Numeric Value

Select Numeric Value from the Logic Element Types menu to add text to the logic expression:

##### Group

Parentheses can be added to the expression by selecting Group from the Logic Element Types menu. The Group element type has two + buttons for inserting elements inside and after the parentheses.

The example below shows an expression that has been built using the following sequence of Logic Element Types: Value (Presence/Absence Tool, Status output); Operator; Group; Value (Count Tool, Count output); Operator; and Text.

When the Logic Tool Editor is closed, the parameter panel for the Logic Tool shows the completed logic expression:

##### NOT Button

The NOT button (!) appears to the left of any Tool Status Value that is added to the logic expression. When selected, it inverts the Status of the Tool Value. In the example below, the expression is TRUE if the Presence/Absence Tool fails.

##### Option Buttons

When you hover the mouse over any element in the logic expression, three option buttons appear at the corners of the element:

= Remove this element from the expression.

= Insert a new element BEFORE this one.

= Insert a new element AFTER this one.

Precautions for Correct Use: If the logical expression created is not correct, you will see the following error: Please review the setting contents of the logical expression.