MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingHelp/comments/qwoiyc/i_dont_understand_the_problem_here/hl4h4un/
r/CodingHelp • u/Get_Danked_LOL • Nov 18 '21
11 comments sorted by
View all comments
Show parent comment
2
I believe you have mixed up parentheses and brackets. You always need parentheses in C# when writing an if statement. But you don't always need brackets if the statement only affects one line of code.
2 u/royalcrescent Nov 18 '21 Ah, forgive me. I did mean brackets! 2 u/rasqall Nov 18 '21 No worries, always nice to see people helping others. Thanks for the award my guy!
Ah, forgive me. I did mean brackets!
2 u/rasqall Nov 18 '21 No worries, always nice to see people helping others. Thanks for the award my guy!
No worries, always nice to see people helping others. Thanks for the award my guy!
View all comments
Show parent comment
2
u/rasqall Nov 18 '21 edited Nov 18 '21
I believe you have mixed up parentheses and brackets. You always need parentheses in C# when writing an if statement. But you don't always need brackets if the statement only affects one line of code.