# Sandbox.Animation.GraphBuilder.BoneMaskSwitch

```csharp
Node BoneMaskSwitch(Node condition, Node whenTrue, Node whenFalse, BoneMaskSelectionSettings settings = null)
```

Select between two bone masks based on a bool `condition`,
optionally blending when it changes.

### Parameters

- `condition` (`Node`): The bool node selecting between the masks.
- `whenTrue` (`Node`): The mask selected when the condition is true.
- `whenFalse` (`Node`): The mask selected when the condition is false.
- `settings` (`BoneMaskSelectionSettings`), default `null`: Selection and blending options.

### Returns

`Node`

Declared in [Sandbox.Animation.GraphBuilder](/api/Sandbox.Animation.GraphBuilder).
Assembly: `Sandbox.Engine`.
