Skip to content
Contractsv1.7.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"
}
}
Setting Type Default Description
Condition Ordering enum Optimized Strategy for ordering condition checks. One of the values below.
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.