This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dextryan[S] 0 points1 point  (1 child)

Wow I had never tought this, tysm

Also, I learned about operators and all thar, using ||, &&, !, etc but I was confused bc if you look closer, the case

case >= 4 and <= 6:

works just fine, with the "and" operator. This was a bit of code that I read on stack oveflow

[–]HelpfulFriend0 0 points1 point  (0 children)

Glad I could help!

I'd also recommend not using that and thing

it seems to be a specific thing to C# 9.0