RSS

If, else, elseif, statements

Sun, Aug 17, 2008

ASP.NET, Code

Conditional statements are probably the easiest-to-use most useful statements within a programming language. Below I give a brief example of how to use it.

if strVariable1 = “John”
Response.Write(”Welcome John!”)
elseif strVariable1 = “Bob”
Response.Write(”Welcome Bob!”)
else
Response.Write(”Welcome…you.”)
Share and Enjoy:
  • Facebook
  • Twitter
  • MySpace
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
,

Comments are closed.