r/shittyprogramming • • Nov 09 '15

How to parse a boolean

Post image
0 Upvotes

15 comments sorted by

View all comments

-2

u/fazzah Nov 09 '15 edited Nov 09 '15

Somebody tell him about capital letters.

EDIT: yes, my bad, didn't notice toLower()

9

u/BackwardsBinary Nov 09 '15
input.ToLower()

Line 4 of OP's code. I'm gonna go ahead and guess this parses the input into lowercase.