---
title: "addManualCondition"
slug: "api/basket/operations/addmanualcondition"
sidebar:
  order: 474
---

<a id="ref-7a5d6cde344b"></a>
<a id="ref-f2c2f7b67e19"></a>
<a id="ref-8b80cfa1a55e"></a>

## Synopsis

```text
int addManualCondition(SessionId sessionId,
    BItemId[]            itemIds,
    string ppName,
    string condType,
    ItemSelectionOptions options)
throws BasketServiceFault;
```

See also: [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [`BItemId`](/pCon/configuratorOnline/specs/api/basket/types/bitemid#ref-bccb6c926e5b), [`ItemSelectionOptions`](/pCon/configuratorOnline/specs/api/basket/types/itemselectionoptions#ref-96d714d65dbc), [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

Add a manual condition to the calculation for the items identified by `itemIds` and the pricing procedure identified by `ppName`. If `itemIds` is the Null-ID, add a header condition. Returns the counter of the newly added condition, or -1 if condition was already added to the calculation.

The `ppName` argument may be an empty string if only one pricing procedure has been added to the basket. `counter` may be -1 if the calculation contains only one condition of the given type.
