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

# subscript(_:_:)

Accesses the value at the given delimited key path.

## Declaration

```swift
subscript(keyPath: String, delimiters: String) -> USDValue? { get set }
```

## Parameters

- `keyPath`: A string of components separated by characters in delimiters.
- `delimiters`: The characters that separate path components.

## Overview

Overview Reads return nil if no value is present at the path. Assigning a non-nil value sets it at the path, creating intermediate dictionaries as needed; assigning nil erases the value at the path.
