IHYPRESS PROGRAMMING
Classic ASP programs with code and output for beginners
classic asp
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
ASP ❯ Selection
<03>
<div style="font-size:1.1em;color:#666600;"> <% '---if statement--- distance = 850 if distance <= 500 then response.write ("Easy in one day.<br>") else if distance <= 800 then response.write ("Feasible in one day.<br>") else response.write ("I should reserve a hotel room.<br>") end if end if %> <% '---case with numbers --- number = 3 select case number case 2 Response.Write("number is Two<br>") case 3 Response.Write("number is Three<br>") case else Response.Write("number is " & number & "<br>") end select %> <% '---case with strings--- pet = "cat" select case pet case "dog" Response.Write("I own a dog") case "cat" Response.Write("I own a cat") case Else Response.Write("I do not have a pet") end select %> </div>
Hergestellt in Deutschland / Made in Germany
I should reserve a hotel room.
number is Three
I own a cat
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland