Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There is currently 1 user online » 0 Member(s) | 1 Guest(s)
|
|
|
Checking If Var is in Range/List |
Posted by: GrandPuba32@ - 03-02-2025, 10:54 PM - Forum: Everything Else Discussion
- No Replies
|
 |
When you were going through the IfElse statements for this week using letters, I was trying to look up if there was a way to see if a letter was in 'a':'z' without having to type everything individually in the IfElse? Is there a way to do that? I found this bit of code online, but I couldn't understand what it was doing..
Code: var list = Enumerable.Range('a', 'z' - 'a' + 1).Select(c => (char)c).ToList();
|
|
|
|