---
title: "AdjustConditionValue"
slug: "api/basket/operations/adjustconditionvalue"
sidebar:
  order: 417
---

<a id="ref-15312a637e9b"></a>
<a id="ref-93e1ef19b56a"></a>
<a id="ref-b8a07798239a"></a>

## Synopsis

```text
void adjustConditionValue(
    string sessionId,
    string[] itemIds,
    string ppName,
    string condType,
    int counter,
    decimal value,
    string currency,
    CondGroupSelectionOptions options
)
```

See also: [`CondGroupSelectionOptions`](/pCon/configuratorOnline/specs/api/basket/types/condgroupselectionoptions#ref-464ab62fd01a)

The operation behaves more or less like [setConditionAmount](/pCon/configuratorOnline/specs/api/basket/operations/setconditionamount#ref-7a09fc4e1645), but instead of just setting the amount to the given value, it tries to compute an amount that results in a value as close as possible to the given value.

The currency argument must be either an empty string (in which case the document currency is assumed) or equal to the document currency.
