ElseIf Statement Home » ASP » VBScript Conditional Logic » ElseIf Statement <%@Language=VBScript%> <%Option Explicit %> <% Dim iGrade, strLetterGrade iGrade = 85 If iGrade >= 90 Then strLetterGrade = "A" ElseIf (iGrade >= 80) Then strLetterGrade = "B" ElseIf (iGrade >= 70) Then strLetterGrade = "C" ElseIf (iGrade >= 60) Then strLetterGrade = "D" Else strLetterGrade = "E" EndIf Response.Write("The numerical Grade is " & iGrade) Response.Write(" and the letter grade is " & strLetterGrade) %> Read more » Share on Facebook Share on Twitter Share on Google Plus RELATED POSTS
Blogger Comment
Facebook Comment