    struct IfChain

    extension IfChain : Equatable, Hashable, Identifiable, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Node.html, Sendable, SendableMetatype

A chain of `https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK6IfThenV` clauses that can be extended with `elseIf` or ended with `orElse`.
- `


  ### [id](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/IfChain#/s:13GoogleHomeSDK7IfChainV2idSSvp)


  ` The stable identity of the entity associated with this instance.

  #### Declaration

  Swift

      let id: String

- `


  ### [ifThen](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/IfChain#/s:13GoogleHomeSDK7IfChainV6ifThenAA0dG0Vvp)


  ` The if-then clause of the `IfChain`.

  #### Declaration

  Swift

      let ifThen: https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK6IfThenV

- `


  ### [elseIfThens](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/IfChain#/s:13GoogleHomeSDK7IfChainV04elseD5ThensSayAA0D4ThenVGvp)


  ` The else-if clauses of the `IfChain`.
  These will execute in order if the if-then clause is false.

  #### Declaration

  Swift

      let elseIfThens: [https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK6IfThenV]

- `


  ### [elseIf(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/IfChain#/s:13GoogleHomeSDK7IfChainV04elseD0yAcA15TypedExpressionVySbG_AA4Node_pyctF)


  ` Adds an `elseIf` clause to the `IfChain`.

  #### Declaration

  Swift

      func elseIf(_ condition: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TypedExpression.html<Bool>, _ node: @escaping () -> any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Node.html) -> IfChain

  #### Parameters

  |---|---|
  | ` condition ` | The boolean `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TypedExpression.html` that must be true to proceed with the specified `node`. |
  | ` node ` | A closure returning the `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Node.html` to proceed with if the condition is true. |

  #### Return Value

  The `IfChain` which can be extended with `elseIf` or ended with `orElse`.
- `


  ### [orElse(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/IfChain#/s:13GoogleHomeSDK7IfChainV6orElseyAA0D4FlowVAA4Node_pycF)


  ` Adds an `orElse` clause to the `IfChain`.

  #### Declaration

  Swift

      func orElse(_ node: @escaping () -> any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Node.html) -> https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/IfFlow.html

  #### Parameters

  |---|---|
  | ` node ` | A closure returning the `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Node.html` to proceed with if all preceding conditions in the chain are false. |

  #### Return Value

  The completed `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/IfFlow.html`.