Re: IIF statements not working

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 02/13/04


Date: Fri, 13 Feb 2004 18:29:21 -0500

IIF isn't a vbscript statement. Perhaps you want to use a select case
statement.

Ray at work

"Scott O'Donnell" <nospam@nospam.com> wrote in message
news:ulkq201ttfpaodbqqu0lt35bitld08vrio@4ax.com...
> From Win 2K Server, IIS 5, ASP
>
> Is there a reason why Immediate If (IIF) statements won't run on an
> IIS server?
>
> I have code written on a dev server e.g.:
>
> Response.Write IIF(1 = 1, "True", "False")
>
> This code runs fine. However when I port it over to another server I
> receive the following error:
>
> Microsoft VBScript runtime error '800a000d'
>
> Type mismatch: 'IIf'
>
> /IIF test.asp, line 6
>
> Is it possible I am missing a dll or something similar? Any help
> would be greatly appreciated!
>
> thanks in advance for any help
> scott



Relevant Pages

  • Microsoft VBScript runtime error 800a01f4
    ... database returns the following: ... Microsoft VBScript runtime error '800a01f4' ... Variable is undefined: 'IIf' ...
    (microsoft.public.inetserver.asp.general)
  • IIF statements not working
    ... Is there a reason why Immediate If (IIF) statements won't run on an ... IIS server? ... I have code written on a dev server e.g.: ...
    (microsoft.public.inetserver.asp.general)