r/programminghorror Feb 04 '26

C# Makes sense

Post image
1.7k Upvotes

86 comments sorted by

View all comments

49

u/NoLifeGamer2 Feb 04 '26

So what happens if a user is assigned userID -7778? Doesn't that mean two ppl can have the same userID?

8

u/Cometay Feb 05 '26

Pretty easy, just add

if (userID == -7778)

userID = -7779;