title: Any idea how to improve my if else statement to make it work?
body: <p>hi i am trying to do an if else statement:</p>
  
  <pre><code>@{
  if(isset(Request["approve"])) { 
          var sql6 = "UPDATE Medical SET NurseDecision = 1, NurseCDSID = @0, NurseDate = GetDate() WHERE MedId = @1 AND AppId = @2 AND CDSID = @3";
          var appMedical = new[]{myCDSID, medicalData.MedId, permitAppAppId, employeeCDSID};
          db.Execute(sql6,appMedical);
  
          var sql7 = "UPDATE PermitApp SET NurseDecision = 1, NurseCDSID = @0, NurseDate = GetDate() WHERE MedId = @1 AND AppId = @2 AND CDSID = @3";
          var appPermitApp =new[]{myCDSID, reqPermit.MedId, permitAppAppId, employeeCDSID};
          db.Execute(sql7,appPermitApp);
  
      } elseif(isset(Request["reject"])){
  
          var sql8 = "UPDATE Medical SET NurseDecision = -1, NurseCDSID = @0, NurseDate = GetDate() WHERE MedId = @1 AND AppId = @2 AND CDSID = @3";
          var appMedical1 = new[]{myCDSID, medicalData.MedId, permitAppAppId, employeeCDSID};
          db.Execute(sql8,appMedical1);
  
          var sql9 = "UPDATE PermitApp SET NurseDecision = -1, NurseCDSID = @0, NurseDate = GetDate() WHERE MedId = @1 AND AppId = @2 AND CDSID = @3";
          var appPermitApp1 =new[]{myCDSID, reqPermit.MedId, permitAppAppId, employeeCDSID};
          db.Execute(sql9,appPermitApp1);
          }
  }
  </code></pre>
  
  <p>for 2 submit buttons in one form like this:</p>
  
  <pre><code>&lt;form&gt;
  &lt;input class="button" type="submit" style="margin:10px auto;" name="reject" value="Reject" /&gt;
  &lt;input class="button" type="submit" style="margin:10px auto; margin-left:400px;" name="approve" value="Approve" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>However this is an error:</p>
  
  <pre><code>CS1026: ; expected on this line&gt;&gt; } elseif(isset(Request["reject"])){
  </code></pre>
  
  <p>Can anyone point my mistake to me?? Thanks</p>