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