    struct Constant

    extension Constant : Equatable, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Expression.html, Sendable, SendableMetatype

Represents a constant.

Constant is often used as the second operand in expressions.
For instance: Equals(operand1: Reference() , operand2: Constant(true)).
- `


  ### [value](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/Constant#/s:13GoogleHomeSDK8ConstantV5valueAA18AnyAutomationValueOvp)


  ` The value this constant represents.

  #### Declaration

  Swift

      let value: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/AnyAutomationValue.html

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/Constant#/s:13GoogleHomeSDK8ConstantV2eeoiySbAC_ACtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: Constant, rhs: Constant) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [associatedValue](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/Constant#/s:13GoogleHomeSDK8ConstantV15associatedValueypSgvp)


  ` Returns the associated value of the constant.

  This property can be used in place of having to switch over every case in `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/Constant.html#/s:13GoogleHomeSDK8ConstantV5valueAA18AnyAutomationValueOvp` to extract
  the associated value.

  #### Declaration

  Swift

      var associatedValue: Any? { get }

- `


  ### [isEqual(to:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/Constant#/s:13GoogleHomeSDK8ConstantV7isEqual2toSbAA10Expression_p_tF)


  ` Returns true if the expressions are equal, false otherwise.

  #### Declaration

  Swift

      func isEqual(to other: any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Expression.html) -> Bool