MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/hefap9/val_is_a_boolean_value/fvu7jml/?context=3
r/badcode • u/Bluebearsuper • Jun 23 '20
58 comments sorted by
View all comments
129
if (val == true) { return true; } else { return false; }
2 u/[deleted] Jun 24 '20 I used to do this in C# before I learned you can just stick val in :( 1 u/INeedAFreeUsername Jun 24 '20 Yeah same it blew my mind when I understood that boolean logic could be returned
2
I used to do this in C# before I learned you can just stick val in :(
1 u/INeedAFreeUsername Jun 24 '20 Yeah same it blew my mind when I understood that boolean logic could be returned
1
Yeah same it blew my mind when I understood that boolean logic could be returned
129
u/INeedAFreeUsername Jun 23 '20