If...Then Statements Home » ASP » VBScript Conditional Logic » If...Then Statements <%@Language=VBScript%> <%Option Explicit %> <% Dim iGrade, strLetterGrade iGrade = 85 If iGrade >= 90 Then strLetterGrade = "A" End If If (iGrade >= 80) AND (iGrade < 90) Then strLetterGrade = "B" End If If (iGrade >= 70) AND (iGrade < 80) Then strLetterGrade = "C" End If If (iGrade >= 60) AND (iGrade < 70) Then strLetterGrade = "D" End If If (iGrade < 60) Then strLetterGrade = "E" End If 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