well in the case you gave, it would be
<CFIF CGI.Remote_Addr is "200.00.11.99" or CGI.Remote_Addr is
"200.00.13.99">

but if yer gonna add a bunch of  ip addresses you might want to consider
using CFSWITCH instead.

<cfswitch expression="#CGI.Remote_Addr#">
<cfcase value="200.00.11.99,200.00.13.99" delimiters=",">
do this....
</cfcase>
<cfcase value="300.00.11.99,300.00.13.99" delimiters=",">
do something else...
</cfcase>
<cfdefaultcase>
you go hungry a bow bow bow...
</cfdefaultcase>
</cfswitch>

----- Original Message -----
From: "Robert Orlini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 20, 2000 9:05 AM
Subject: check with an OR


> Hello,
>
> I have a CFIF statement that checks for certain IP addresses then emails
> appropriate parties:
> ----------------
> <CFIF CGI.Remote_Addr is "200.00.11.XX">
>
> <CFMAIL from="[EMAIL PROTECTED]"
> To="[EMAIL PROTECTED]"
> Subject="Oracle Connection with Home Page">
> The Oracle Connection with Home Page server has unexpectedly gone down.
> </CFMAIL>
>
> </cfif>
> ----------------
> QUESTION: How can I add additional IP addresses using an OR statement to
the
> above?
> I tried <CFIF CGI.Remote_Addr is "200.00.11.99" or "200.00.13.99"> but it
> only sees the 1st IP.
>
> It seems it should be simple, but...
>
> Thanks in advance.
>
> Robert O.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to