---
title: "didValue(forInputKeyChange:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcplugin/didvalue(forinputkeychange:)"
---

# didValue(forInputKeyChange:)

Returns whether the input port value changed since the last execution of the custom patch.

## Declaration

```swift
func didValue(forInputKeyChange key: String!) -> Bool
```

## Parameters

- `key`: The key for the input port whose value you want to check.

## Return Value

Return Value true if the value on the input port changed since the last time the execute(_:atTime:withArguments:) method was called; always returns false if called outside of the execute:atTime:withArguments: method.

## See Also

### Getting and Setting Port Values

- [value(forInputKey:)](quartz/qcplugin/value(forinputkey:).md)
- [setValue(_:forOutputKey:)](quartz/qcplugin/setvalue(_:foroutputkey:).md)
