C
C#16mo ago
MelodicMantis

❔ it won't work, can someone help me?

No description
6 Replies
Thinker
Thinker16mo ago
You're missing braces
MelodicMantis
MelodicMantisOP16mo ago
where
Thinker
Thinker16mo ago
Blocks in C# use {} to denote scope
if (boy > girl)
{
// ...
}
if (boy > girl)
{
// ...
}
MelodicMantis
MelodicMantisOP16mo ago
wait ill try okay thanks worked
Jester
Jester16mo ago
you only dont need {} for the first line after an if statement but you should always use them to avoid mistakes
Accord
Accord16mo ago
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.

Did you find this page helpful?