Skip to content
These docs reflect Contracts v0.6.0, the latest release. Older servers may differ.

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"
}
}
SettingTypeDefaultDescription
Condition OrderingenumOptimizedStrategy for ordering condition checks. One of the values below.
ValueWhat it does
NonePreserve the order conditions are written in. Use this if you ever need evaluation order to match the file exactly.
OptimizedReorder by estimated cost, including conditions nested inside And/Or, so the cheapest checks run first. Best throughput; the default.
RootOptimizedReorder only the top-level conditions by cost, leaving conditions nested inside And/Or in their written order.