❔ Bool method that doesn't work
https://paste.mod.gg/adsjyblwubxp/0
The purpose is to repeat the main method if the user enters a Y but for some reason, no matter what I tweak, it does not work
BlazeBin - adsjyblwubxp
A tool for sharing your source code with the world!
9 Replies
Ero#1111
REPL Result: Success
Result: ValueTuple<bool, char>
Compile: 489.225ms | Execution: 33.069ms | React with ❌ to remove this embed.
what is that if statement?
"if input is not Y or N, then it's a valid input"?
how to logic error 101
I banged my head against a wall over this
and now I see it
This breaks my brain
'y'
!= 'Y'
the .ToUpper should change that
what
.ToUpper
?oh wait I refactored it and forgot about it
I put the .ToUpper in but it is still kinda weird
The first prompt does not register and the question is repeated but the second prompt works.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.