---
title: "setOutputEnabled(_:enabled:)"
framework: Compute Graph
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computegraphsimulation/setoutputenabled(_:enabled:)"
---

# setOutputEnabled(_:enabled:)

Enables or disables execution of the provided output stage, without disabling the system it represents.

## Declaration

```swift
final func setOutputEnabled(_ outputID: Int, enabled: Bool)
```

## Parameters

- `outputID`: The node identifier of the output to enable or disable.
- `enabled`: true to simulate the output; false to omit it.

## Discussion

Discussion Disabling an output is useful when you want to switch between multiple outputs for the simulation, for example two outputs with different topologies for the same elements.
