Yes positive, see the thing is it goes to the next part, it calculates the
formula thing is when formula eq 1 it gives me a floating point integer with
an E in it and CF sees this as an error since an e isn't numeric. The author
of the tag knew this which is why it skips it if it is a 1, but it isn't
skipping thereby causing an error.
Robert Everland III
Web Developer
Dixon Ticonderoga
-----Original Message-----
From: Andrew Middleton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 12:19 PM
To: CF-Talk
Subject: RE: CFIF not working
Sounds like your problem is in the evaluation of the expression
<cfif ZP1.zip EQ ZP2.zip>, are you sure that ZP1.zip and ZP2.zip are
returning values?
-----Original Message-----
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 12:13 PM
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists