C
C#17mo ago
AriieSiiS

inaccessible code?

Maybe I'm stupid and I don't see what's going on, but I got an "inaccessible code" error and I don't understand why.
3 Replies
Thinker
Thinker17mo ago
while (!true) will never execute It'll come to the while (!true) statement, evaluate !true, see that that's false, then just not run the while loop
AriieSiiS
AriieSiiS17mo ago
ok i am stupid and forgot to change the variable name and put the true and not the name of the bool ty, i guess the answers is: yes, you are stupid
Thinker
Thinker17mo ago
everyone's stupid sometimes, no worries