Hi All...
I've been wondering about how ASP works in regards to using If Then Else Statement
Take the two code examples:
** only two lines of code... looks neat for a developer!
** 5 lines of code... yuck!
Which of the two are more efficient use of the server's processing?
Earnie Eng
I've been wondering about how ASP works in regards to using If Then Else Statement
Take the two code examples:
** only two lines of code... looks neat for a developer!
Code:
strName = Request.Form("Name")
If isNull(strName) Then strName = ""
** 5 lines of code... yuck!
Code:
If isNull(Request.Form("Name") Then
strName = ""
Else
strName = Request.Form("Name")
End if
Which of the two are more efficient use of the server's processing?
Earnie Eng