RHT Services Forum
Checking If Var is in Range/List - Printable Version

+- RHT Services Forum (https://forums.rhtservices.net)
+-- Forum: The Lounge (https://forums.rhtservices.net/forumdisplay.php?fid=14)
+--- Forum: Everything Else Discussion (https://forums.rhtservices.net/forumdisplay.php?fid=15)
+--- Thread: Checking If Var is in Range/List (/showthread.php?tid=41)



Checking If Var is in Range/List - GrandPuba32@ - 03-02-2025

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();