Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Policy logic condition fields

Policy logic is a set of conditions that is used for determining whether a policy is compliant or non-compliant. You can use the condition builder to specify conditions for the policy.

Policy logic page

Image omitted: pace-low-code-policy-builder-3.jpg
Policy builder.

Select the or and and button to add multiple rules in the condition set. Select the minus icon

Image omitted: pace-output-type-delete.png
Minus icon. to delete a condition.

You can add a condition set by selecting the New condition set button.

FieldDescription
Condition descriptionDescription of the field.
SourceVariable of the source for the condition.
OperatorList of operators to filter the source for the condition. The list changes depending on the source selected.
ValueValue to enter text. Select the Data picker icon
Image omitted: pace-pill-picker-icon-2.jpg
Data pill picker icon. to concatenate multiple text strings with multiple data pills to select a variable for the log.<strong>Note:</strong> If your Source is choice, the Data pill picker icon is inactive.</td></tr></tbody>

The else if statement enables you to specify a new condition if the first condition is false. The else statement enables you to specify a new condition if it does not apply to the if statement.

You can add a dependent condition by selecting or or and next to the condition.

FieldDescription
Logic type

Select the logic type of the policy:- Decision: Determines if the policy is Compliant or Non-compliant. - Run policy: For nested policies, the parent policy will return the decision of the child policy that has been selected in the builder.

Note: PaCE supports nesting policies for decision-making and up to two levels are supported, a child and a grandchild.

Log levelLevel of the log.
Log messageLog message field to enter text or select the Data picker icon
Image omitted: pace-pill-picker-icon-2.jpg
Data pill picker icon. to concatenate multiple text strings with multiple data pills to select a variable for the log.
Output typeOutput type of the log. You can select the plus icon
Image omitted: pace-output-type-add.png
Add icon. to add multiple output types or the minus icon \[Omitted image "pace-output-type-delete.png"\] Alt text: Minus icon. to delete the output type.
DataData field to enter text. Select the Data picker icon
Image omitted: pace-pill-picker-icon-2.jpg
Data pill picker icon. to concatenate multiple text strings with multiple data pills to select a variable for the log.

The following images show you are able to use the data pill picker to concatenate data in the fields:

Image omitted: pace-low-code-data-picker.jpg
Selecting data from pill picker.
Image omitted: pace-low-code-concatenate-data.jpg
Data concatenated.

You can see a list of the data sources under the Data source tab.

Image omitted: pace-data-source-tab-3.jpg
Data source tab.

You can calculate fields using numeric operators and use these variables to calculate the desired value in a policy logic.

Note: This only supports numeric fields.

OperatorDescription
Plus (+)Add variables and constants. For example, "Var1 + Var2..."
Minus (-)Subtract variables and constants. For example, "Var1 - Var2..."
Multiplication (*)Multiple variables and constants. For example, "Var1 * Var2..."
Division (/)Divide variables and constants. For example, "Var1 / Var2..."
Parentheses ()Use parentheses to support the order of operators.
calc[]Use the brackets to evaluate an expression.

You can mix and match between the operators. For example, "Var1 +Var2*Var3 / Var4".

sndocs is an independent community mirror and is not affiliated with or endorsed by ServiceNow.

ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are associated.

© 2026 ServiceNow, Inc. All rights reserved.

Documentation content is redistributed under the Apache License 2.0 from the ServiceNowDocs repository.