In VB if you have an if/then statement there can be multiple lines you just have to follow it with an end if
For example:
These 2 statements are valid:
Code:
If strVar <> "" Then Response.Write(strVar)
If strVar <> "" Then
Response.Write(strVar)
End If
This is invalid and will throw a compile error:
Code:
If strVar <> "" Then
Response.Write(strVar)