# bool IsSelectionAssigned(int, int)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
bool IsSelectionAssigned(int, int)
```

## Description

Validates player and selection indices and reports whether the selected selection contains any units.

## Parameters and return type

**Return type:** `bool`

| Position | Type |
| --- | --- |
| 1 | `int` |
| 2 | `int` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`bool IsSelectionAssigned(int)`](/imperivm/en/CKS/reference/api-10c9395f5bdfcf/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-e95143c16afc2c.md)
- [JSON](/imperivm/CKS/api/entries/api-e95143c16afc2c?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
