ASP.NET RazorLesson 26Free preview
Razor VB Logic
This lesson is part of ASP · All levels
Summary
Branching in Razor VB uses the If syntax closed with the End If, as well as Select Case to select multiple branches based on a single value. Logical operators use the words And, Or, and Not in the style of Visual Basic. Organized logic makes pages easy to read and maintain. (.Then) (.Else)
Key points
- If... ends with End If. (.Else)
- Select Case is used for multi-branching.
- The VB logical operators are And, Or, and Not.
- The branches should be limited to be easy to read.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.