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

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