Skip to content

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

SettingTypeRequiredDefaultDescription
Which Word to CheckStringYes1Which argument position after the command (1 = first word).
OptionsString ArrayYesList of subcommand values. Each creates a separate output.
Case SensitiveBooleanNofalseWhether 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:

  1. Which Word to Check: 1
  2. Options: help, set, list
  3. Connect each output to its handler
  4. Connect default to "Unknown subcommand" message

Oasis Admin Editor Documentation