---
title: "subscript(_:)"
framework: tabletopkit
role: symbol
role_heading: Instance Subscript
path: "tabletopkit/countercollection/subscript(_:)"
---

# subscript(_:)

Queries or modifies the value of the score counter with given identifier.

## Declaration

```swift
subscript(id: ScoreCounter.ID) -> Int64? { get set }
```

## Parameters

- `id`: The identifier of the score counter to be returned.
