Select Case Home » ASP » VBScript Conditional Logic » Select Case <%@Language=VBScript%> <%Option Explicit %> Select Case Statement <% Dim s,s1,s2 s1 = 50 s2 = 10 s = "Mul" Select Case s Case "Add" Response.Write(s1 + s2) Case "Sub" Response.Write(s1 - s2) Case "Mul" Response.Write(s1 * s2) Case "Div" Response.Write(s1 / s2) End Select %> Read more » Share on Facebook Share on Twitter Share on Google Plus RELATED POSTS
Blogger Comment
Facebook Comment