struct Assignment
extension Assignment : Equatable, Hashable, Identifiable, Node, NodeWithOutput, Sendable
Struct that represents the assignment of a value to a variable.
-
The stable identity of the entity associated with this instance.
Declaration
Swift
let id: String
-
The unique ID for the Assignment node output. Must be unique per Automation
Declaration
Swift
let output: String
-
An expression that is applied to the value of the variable.
Declaration
Swift
let expression: any Expression
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
a
andb
,a == b
implies thata != b
isfalse
.Declaration
Swift
static func == (lhs: Assignment, rhs: Assignment) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
Returns true if the nodes are equal, false otherwise.
Declaration
Swift
func isEqual(to other: any Node) -> Bool