Other then it's probably nicer to write it like this:

<input type="hidden" name="price"
value="#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetails.sr
p))#">

I don't see anything wrong with it.  Where does getDollDetails get created?
You said it's a query?  

CF debugger sucks sometimes and will give you weird errors when the real
error is actually somewhere around it.  Check the lines before it and see if
there's some typo there or maybe a missed quote somewhere. 

Russ

> -----Original Message-----
> From: Donna French [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 10, 2006 5:02 PM
> To: CF-Talk
> Subject: CFIF inside a Form
> 
> I'm trying to use the following code inside a <FORM> tag that uses POST:
> 
> <cfif getDollDetails.price gt 0>
>   <input type="hidden" name="price" value="#Trim(getDollDetails.price)#">
> <cfelse>
>   <input type="hidden" name="price" value="#Trim(getDollDetails.srp)#">
> </cfif>
> 
> Is there a trick to doing this because I've written similar code without
> problems. The error says:
> 
> An error occurred while evaluating the expression:
> 
>  price GT 0
> 
> 
> I'm scoping the price variable and quad checked the name of the query.
> What am I missing here???
> 
> Maybe I'm just vapored locked since it's 4pm???
> 
> TIA,
> Donna
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249517
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to