Platform Switch
Branches the execution flow based on the current operating system.
This node checks the operating system it is currently running on and triggers the corresponding output execution port.
This is useful for creating platform-specific logic within a single graph, for example, running different commands or accessing files in different locations depending on the OS.
Supported Platforms#
| Port | Platform |
|---|---|
| Windows | Windows |
| macOS | macOS (darwin) |
| Linux | Linux |
If the node is executed on an unsupported operating system, it will produce an error and stop the execution.
Inputs#
| Port | Description |
|---|---|
| Triggers the platform check. |
Outputs#
| Port | Description |
|---|---|
| Triggered if the current operating system is Windows. | |
| Triggered if the current operating system is macOS. | |
| Triggered if the current operating system is Linux. |
ID: core/switch-platform@v1