Skip to content
Contractsv1.14.0

Conditions

Controls the order in which the plugin evaluates an objective’s conditions on each qualifying action. This is a performance setting: it does not change which actions count, only the order checks run in. Cheaper checks run first so the plugin can short-circuit and skip the expensive ones.

{
"Conditions": {
"Condition Ordering": "Optimized"
}
}
FieldTypeDefaultDescription
Condition Orderingenum: None | Optimized | RootOptimized"Optimized"How the plugin orders condition checks at load. Optimized sorts all conditions by cost so cheap checks run first, including inside And/Or groups. RootOptimized sorts only the top level and keeps nested order. None keeps the order from the data files.
Value What it does
None Preserve the order conditions are written in. Use this if you ever need evaluation order to match the file exactly.
Optimized Reorder by estimated cost, including conditions nested inside And/Or, so the cheapest checks run first. Best throughput, and the default.
RootOptimized Reorder only the top-level conditions by cost, leaving conditions nested inside And/Or in their written order.