Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Expected a "{" but found a "(".  Block statements must be enclosed in "{" and "}".  You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed:

@if(isLoggedIn)
   <p>Hello, @user</p>

Instead, wrap the contents of the block in "{}":

@if(isLoggedIn) {
   <p>Hello, @user</p>
}


Source Error:


Line 38:                 
Line 39:             }
Line 40: 		else (!Request.Url.Host.Contains(".co.uk/es"))
Line 41:             {
Line 42:                 <a class="header-logo" href="/">

Source File: /Views/Shared/Menu.cshtml    Line: 40


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0