How to Add the Immediate-If Function to an ASP Page (219271)
The information in this article applies to:
- Microsoft Internet Information Services version 6.0
- Microsoft Internet Information Server 3.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 5.0
This article was previously published under Q219271 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: SUMMARY
One of the common Visual Basic (VB) or Visual Basic for Applications (VBA) functions that was omitted from VBScript (VBS) for Active Server Pages (ASP) is the "Immediate-If" or IIf() function.
The IIf() function is used in place of If..Then..Else statements, where a single expression is being tested and specific values are returned if the expression evaluates as true or false. Because this command was omitted from the ASP VBS command set, you can use the code below to add this functionality to an ASP page by adding IIf() as a new function to the code.
Modification Type: | Minor | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto KB219271 |
---|
|