Manav Pandya

Manav Pandya

  • NA
  • 19.9k
  • 2.3m

How to use => operator

Sep 28 2016 10:54 AM
I have facing one error as follow :
 
@model Demo.Models.college
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>demo</title>
</head>
<body>
<div>
 
<h1>
 
@if(Model.spi=>7) / Erorr = '=>' Invalid Expression
{
@Model.name
}
</h1>
</div>
</body>
</html>
 
 
Here what i want to do that :
 
 
if student get 7 and above code then do something
if student get 6 and above code then do something  etc ....
 
so how i can check that if student have 7 or more grade condition ?
 
 
 

Answers (4)