ASP ClassicLesson 31Free preview
ASP Conditionals
This lesson is part of ASP · All levels
Summary
Branching in Classic ASP is written with If or Select Case to select multiple branches based on a single value. Conditions use comparison operators such as =, <>, >, < and the logical operators And, Or, Not. With branching, a page can display different content according to input values, access rights, or query results. (.Then) (.Else)
Key points
- If... check one condition to determine the block being executed. (.Then) (.Else)
- Select Case is suitable for multiple options based on one value.
- The comparison operator uses = for equal and <> for unequal.
- The VBScript logical operators are And, Or, and Not.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.