Appearance
Flow Subcommand Switch
Routes command execution to different paths based on the subcommand (argument) typed.
Inputs: 1 · Outputs: default + dynamic outputs
INFO
To explicitly check only check for one subcommand, consider using the Check Subcommand condition node instead.
Settings
| Setting | Type | Required | Default | Description |
|---|---|---|---|---|
| Which Word to Check | String | Yes | 1 | Which argument position after the command (1 = first word). |
| Options | String Array | Yes | — | List of subcommand values. Each creates a separate output. |
| Case Sensitive | Boolean | No | false | Whether matching is case-sensitive. |
How It Works
This node creates dynamic outputs — one for each option you define, plus a default output for unmatched values.
For example, with /mycommand help start stop:
- Options:
help,start,stop - Outputs:
help,start,stop,default
Example
Route /warp help|set|list:
- Which Word to Check:
1 - Options:
help,set,list - Connect each output to its handler
- Connect default to "Unknown subcommand" message
