# $taxRules->findBy()

> Find a single element by an attribute and its value

- Source: `src/Cms/Collection.php#L149` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Collection.php#L149>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$taxRules->findBy(string $attribute, $value): TValue|null
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$attribute` | `string` | `–` |
| `$value` | `–` | `–` |

## Return type

`TValue|null`

## Parent class

`Wagnerwagner\Merx\TaxRules` inherited from `Kirby\Cms\Collection`
