The thing is with the ZIP1.zip and ZIP2.zip if they are the same it sets a
zero value which is good, then it loops again so when they are different is
when it goes to the formula section. So once it is in the formula section
that is where I am having a problem. CF is acting as though it doesn't even
exist. Is there a known problem with nesting these?

Robert Everland III
Web Developer
Dixon Ticonderoga


-----Original Message-----
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 12:23 PM
To: CF-Talk
Subject: RE: CFIF not working


maybe try:

1) make sure your ZIP1.zip and ZIP2.zip are values you expect
2) use TYPE=ANY in CFCATCH just to make sure you're not missing some error


-----Original Message-----
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 9:13 AM
To: CF-Talk
Subject: RE: CFIF not working


Tried that, didn't work either. It's as though the cfif that is nested isn't
working at all.

Robert Everland III
Web Developer
Dixon Ticonderoga


-----Original Message-----
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 11:20 AM
To: CF-Talk
Subject: Re: CFIF not working


instead of <cfif not formula EQ 1> use <cfif formula NEQ 1>

----- Original Message -----
From: "Robert Everland" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 27, 2000 8:08 AM
Subject: CFIF not working


> Can anyone see as to why the cfif after the  cfelse wouldn't be working. I
> am using cf_ziprad which was purchased, and I can not get those cfif's to
> work. Formula is 1 and it won't set miles to 0 which of course erros
> everyhting out. I am using 4.5.1 sp1
>
>
>
> <cfloop query="ZP2">
> <cfif ZP1.zip EQ ZP2.zip>
> <cfset miles=0>
> <cfelse>
> <cfset formula = Sin(ZP1.lat) * Sin(ZP2.lat) + COS(ZP1.lat)
> *  COS(ZP2.lat) *  COS(ZP2.lon - ZP1.lon)>
> <cfif not formula EQ 1>
> <cftry>
>     <cfset miles = 3963 * (ATN(-formula / SQR(-formula *
> formula + 1)) + 2 * ATN(1))>
> <cfcatch type="Expression">
> <cfset miles=radius + 1>
> </cfcatch>
> </cftry>
> <cfelse>
> <cfset miles=0>
> </cfif>
> </cfif>
>
>
> Robert Everland III
> Web Developer
> Dixon Ticonderoga
>
>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!  Instant Activation for $99/month w/Free Setup 
from SoloServer  PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support  Visit 
SoloServer, https://secure.irides.com/clientsetup.cfm.

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to