Nút Chuyển Mạch (Switch Node)¶
The Switch node outputs one of two inputs depending on a condition.
When the inputs are regular values, only the input that is passed through the node is evaluated. This means the unused input is not computed.
When the inputs are Trường (Fields), both inputs may be evaluated before the switch is applied. The switch then selects which result is used for each element. Because of this, the node should not be relied on to avoid evaluating expensive field inputs.
Xem thêm
The Nút Chuyển Đổi Trình Đơn [Menu Switch Node] and Chỉ Số Nút Chuyển Mạch [Index Switch Node] can be used to switch between an arbitrary amount of inputs.
Đầu Vào (Inputs)¶
- Chuyển Mạch (Switch)
Xác định đầu vào nào trong hai đầu vào bên dưới sẽ được chuyển qua.
- Sai (False)
Được chuyển qua khi chuyển mạch được đặt thành false.
- Đúng (True)
Được chuyển qua khi chuyển mạch được đặt thành true.
Tính Chất (Properties)¶
- Thể Loại (Type)
Xác định kiểu dữ liệu được xử lý bởi nút.
Đầu Ra (Outputs)¶
- Đầu Ra (Output)
Một trong hai đầu vào mà không có bất kỳ sửa đổi nào.