StackOverflow Questions for Tag: switch-statement

Aymen Derradji
Aymen Derradji

Reputation: 318

Return number of days in a given month of a given year

Score: 0

Views: 10434

Answers: 6

Read More
ProjectPokket
ProjectPokket

Reputation: 155

Using 'const' or 'let' statements in a switch-case block in vue3

Score: 0

Views: 23

Answers: 0

Read More
Riona McCumskay
Riona McCumskay

Reputation: 3

struggling with a switch statement problem on northcoders

Score: 0

Views: 250

Answers: 1

Read More
Klumpy7
Klumpy7

Reputation: 113

Shorter way to execute some code if any case were matched Python 3.10

Score: 0

Views: 70

Answers: 2

Read More
yesraaj
yesraaj

Reputation: 47980

Why can't the switch statement be applied to strings?

Score: 341

Views: 624432

Answers: 24

Read More
user918967
user918967

Reputation: 2167

Can I use a case/switch statement with two variables?

Score: 73

Views: 289139

Answers: 11

Read More
barry
barry

Reputation: 23

hlsl - how do i avoid using switch statement?

Score: 0

Views: 143

Answers: 1

Read More
lalebarde
lalebarde

Reputation: 1816

a switch jumping in unexpected place

Score: 0

Views: 341

Answers: 2

Read More
Mark Adler
Mark Adler

Reputation: 112502

Is using if (0) to skip a case in a switch supposed to work?

Score: 133

Views: 8753

Answers: 4

Read More
Sss
Sss

Reputation: 1529

How to jump to another case statement in a switch-case condition with the value of current case statement using C#

Score: 4

Views: 12029

Answers: 6

Read More
Ivajlo Iliev
Ivajlo Iliev

Reputation: 463

"patterns in switch statements are a preview feature and are disabled by default" when switching to java 17 - what is the right solution?

Score: 3

Views: 6651

Answers: 2

Read More
Marios Tele
Marios Tele

Reputation: 55

Angular 17 @switch multiple values in case

Score: 4

Views: 3634

Answers: 1

Read More
Andrus
Andrus

Reputation: 27955

using Type expression in switch label

Score: 0

Views: 21

Answers: 0

Read More
Svisstack
Svisstack

Reputation: 16656

Shortcut in Visual Studio 2010 to generate all possible Case's in Switch

Score: 7

Views: 7683

Answers: 3

Read More
lil chill
lil chill

Reputation: 75

DAX column totals are not giving expected totals when using the MIN

Score: 1

Views: 56

Answers: 1

Read More
simonalexander2005
simonalexander2005

Reputation: 4577

Enum in switch pattern causes wrong case to be used

Score: -2

Views: 89

Answers: 1

Read More
Jessie Stalk
Jessie Stalk

Reputation: 991

Using comparison operators in a PHP 'switch' statement

Score: 64

Views: 80462

Answers: 7

Read More
kos1posha
kos1posha

Reputation: 3

Explanation of type comparison using switch-case in Dart

Score: 0

Views: 89

Answers: 1

Read More
GOS Playz
GOS Playz

Reputation: 1

My Switch statement ends even though it should scan for user input

Score: 0

Views: 19

Answers: 0

Read More
AMR
AMR

Reputation: 21

Assign value to variable in Java with Switch Stament

Score: -1

Views: 1912

Answers: 2

Read More
PreviousPage 4Next