From 1f9853371ca1bb5ee6832c57f9dd25031e598c23 Mon Sep 17 00:00:00 2001 From: FajitaOfTreason <234828294+FajitaOfTreason@users.noreply.github.com> Date: Tue, 23 Dec 2025 21:09:14 -0800 Subject: [PATCH 1/2] add info about adding cases to switch statement --- streamerbot/3.api/1.sub-actions/core/logic/switch.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/streamerbot/3.api/1.sub-actions/core/logic/switch.md b/streamerbot/3.api/1.sub-actions/core/logic/switch.md index 5081159a..8452f67e 100644 --- a/streamerbot/3.api/1.sub-actions/core/logic/switch.md +++ b/streamerbot/3.api/1.sub-actions/core/logic/switch.md @@ -20,3 +20,15 @@ parameters: - `0`{lang=cs} can be auto-typed to a numeric type such as `int`{lang=cs} or `long`{lang=cs} - `true`{lang=cs} or `false`{lang=cs} can be auto-typed to a `bool`{lang=cs} --- + +You can add any number of cases to a switch by right clicking on the `switch` Sub-Action and selecting "Add Case" +![Switch Sub-Action context menu showing "Add Case" option](assets/switch-add-case-context-menu.png) + +You can add one or more values to a case. If any of the case's values match the `switch` input, that case will be run. +![Add Case Dialogue](assets/switch-add-case-dialogue.png) + +::note +Only the first matching case will be run + +If no cases match, the `default` case will be run +:: \ No newline at end of file From 70c5b85748b8277e6f2ef58f3d22adbce0168ef6 Mon Sep 17 00:00:00 2001 From: Whipstickgostop <8366326+Whipstickgostop@users.noreply.github.com> Date: Wed, 24 Dec 2025 12:40:20 -0500 Subject: [PATCH 2/2] fix: formatting --- streamerbot/3.api/1.sub-actions/core/logic/switch.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/streamerbot/3.api/1.sub-actions/core/logic/switch.md b/streamerbot/3.api/1.sub-actions/core/logic/switch.md index 8452f67e..41088adb 100644 --- a/streamerbot/3.api/1.sub-actions/core/logic/switch.md +++ b/streamerbot/3.api/1.sub-actions/core/logic/switch.md @@ -22,13 +22,14 @@ parameters: --- You can add any number of cases to a switch by right clicking on the `switch` Sub-Action and selecting "Add Case" + ![Switch Sub-Action context menu showing "Add Case" option](assets/switch-add-case-context-menu.png) -You can add one or more values to a case. If any of the case's values match the `switch` input, that case will be run. +You can add one or more values to a case. If any of the case's values match the `switch` input, that case will be executed. + ![Add Case Dialogue](assets/switch-add-case-dialogue.png) ::note -Only the first matching case will be run - -If no cases match, the `default` case will be run +Only the first matching case will be executed. +- If no cases match, the `default` case will be executed. :: \ No newline at end of file