HA! Maybe it was a bad install too so how can we check for the existance of
<cfif>? hmmmm

-----Original Message-----
From: Aaron Rouse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 11:16 PM
To: CF-Talk
Subject: Re: CFIF Statement

Are you insane?  I am just supposed to assume that getitem exists and that
it is a query and that itemvalue is a column name within it?  Sorry but that
is just bad coding right there, you are not checking for the proper
existance of things and lets not even get started on the fact you are
treating a record count on a query like a boolean.

On 10/3/06, Claude Schneegans <[EMAIL PROTECTED]> wrote:
>
> >>The reason is sometimes we want default values on a create screen.
>
> Easy, then just use
> <CFIF getItem.recordCount>
>     VALUE="#getItem.itemValue#"
> <CFELSE>
>     VALUE="some default">
>
> Back on subject, ah ah! ;-)
>
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:255383
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