# Sandbox.Animation.GraphBuilder.IdSwitch

## Overload 1

```csharp
Node IdSwitch(Node condition, Node whenTrue, Node whenFalse)
```

Select between two ID values based on a bool `condition`.

### Parameters

- `condition` (`Node`)
- `whenTrue` (`Node`)
- `whenFalse` (`Node`)

### Returns

`Node`

## Overload 2

```csharp
Node IdSwitch(Node condition, string whenTrue, string whenFalse)
```

### Parameters

- `condition` (`Node`)
- `whenTrue` (`string`)
- `whenFalse` (`string`)

### Returns

`Node`

## Overload 3

```csharp
Node IdSwitch(Node condition, IdSwitchSettings settings)
```

### Parameters

- `condition` (`Node`)
- `settings` (`IdSwitchSettings`)

### Returns

`Node`

Declared in [Sandbox.Animation.GraphBuilder](/api/Sandbox.Animation.GraphBuilder).
Assembly: `Sandbox.Engine`.
