<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/Logic/Select-(RealityKit)",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_MTL_select_half"
  },
  "title" : "Select (RealityKit)"
}
-->

# Select (RealityKit)

Selects B if conditional is true, A if false.

## Parameter Types

**Select (half):**

|Input|Type|
                |-----|----|
                |`A`  |Half|
                |`B`  |Half|
                |`C`  |Bool|

|Output|Type|
                |------|----|
                |`Out` |Half|

**Select (integer):**

|Input|Type |
                |-----|-----|
                |`A`  |Int32|
                |`B`  |Int32|
                |`C`  |Bool |

|Output|Type |
                |------|-----|
                |`Out` |Int32|

**Select (float):**

|Input|Type |
                |-----|-----|
                |`A`  |Float|
                |`B`  |Float|
                |`C`  |Bool |

|Output|Type |
                |------|-----|
                |`Out` |Float|

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)