---
title: containerIsObjectBeingTested
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptobjectspecifier/containerisobjectbeingtested
---

# containerIsObjectBeingTested

Sets whether the receiver’s container should be an object involved in a filter reference or the top-level object.

## Declaration

```swift
var containerIsObjectBeingTested: Bool { get set }
```

## Discussion

Discussion If the receiver’s container specifier is nil and flag is true, sets the receiver’s container to be an object involved in a filter reference (for example, whose color is blue). If the receiver’s container specifier is nil and flag is false, sets the receiver’s container to be the top-level object. If flag is true containerIsRangeContainerObject should not also be invoked with an argument of true.

## See Also

### Getting, testing, and setting containers

- [containerClassDescription](foundation/nsscriptobjectspecifier/containerclassdescription.md)
- [containerIsRangeContainerObject](foundation/nsscriptobjectspecifier/containerisrangecontainerobject.md)
- [container](foundation/nsscriptobjectspecifier/container.md)
