C++/CLI语法错误.这是漫长的一天,我的大脑运作不正常

Ale*_*ere 1 syntax c++-cli visual-c++

任何人都可以看到这个错误吗?我得到的错误是:

1> MainForm.cpp(71):错误C2059:语法错误:')'

1> MainForm.cpp(72):错误C2143:语法错误:缺少';' 在'{'之前

1> MainForm.cpp(75):错误C2181:非法其他没有匹配if

1> MainForm.cpp(75):错误C2059:语法错误:')'

1> MainForm.cpp(76):错误C2143:语法错误:缺少';' 在'{'之前

码:

if (oMail->From->ToString()->Contains("email@gmail.com")) //Compare to whitelist
{
                mailSend::sendMail("email@gmail.com", "Commands Accepted!", "You are on the whitelist for this server.");
}
else if () //Compare to blacklist
{
                mailSend::sendMail("email@gmail.com", "Commands Rejected!", "You are on the blacklist for this server.");
}
else () // Else do Default Behavior
{
    if (UserSettings::TheInstance2->defaultBehavior->ToString() == "Accept")
    {
                mailSend::sendMail("email@gmail.com", "Commands Accepted!", "Accepted");
    }
    else if (UserSettings::TheInstance2->defaultBehavior->ToString() == "Accept (And add to Whitelist)")
    {
                mailSend::sendMail("email@gmail.com", "Commands Accepted!", "You have been added to the whitelist for this server!");
    }
    else if (UserSettings::TheInstance2->defaultBehavior->ToString() == "Reject")
    {
                mailSend::sendMail("email@gmail.com", "Commands Rejected!", "The server admin has set the server to reject non-whitelisted addresses.");
    }
    else if (UserSettings::TheInstance2->defaultBehavior->ToString() == "Reject (And add to Blacklist)")
    {
        mailSend::sendMail("email@gmail.com", "Commands Rejected!", "The server admin has set the server to add rejected addresses to the blacklist. You are now on it.");
    }
Run Code Online (Sandbox Code Playgroud)

Mah*_*esh 6

 else () 
   // ^^ Remove this.
 {
      // ....
 }
Run Code Online (Sandbox Code Playgroud)

else 声明不应该有 ()