> Can anyone tell me why this isn't working.  I can't stare at this any
> longer.  The output runs fine until there is a CYOriginal = 0.  Blows up.
> Help, Please.
>
> <CFOUTPUT>#IIF(CYOriginal EQ 0, IIF(Requested GT 0, DE("100.0"),
> DE("0.0")),
> NumberFormt(100*Change/CYOriginal, '__._'))#</CFOUTPUT>
>
> I get this error:
>
> Error Diagnostic Information
>
> An error occurred while evaluating the expression:
>
> #IIF(CYOriginal EQ 0, IIF(Requested GT 0, DE("100.0"), DE("0.0")),
> NumberFormat(100*Change/CYOriginal, '__._'))#

Can you do a CFOUTPUT of CYOriginal before the IIF?
It might be something very close to 0, but not quite - even if it's
something like 0.0 then it will appear differently

Also, try IIF(Val(CYOriginal) - this might help

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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

Reply via email to