Yup - because 0 is false, but all other (positive?) numbers are true

Jeff Small wrote:
> 
> <cfif qMyQuery.Recordcount></cfif>
> 
> ....is basically the same as saying, "as long as there's at least one
> record returned, true". This returns true and steps into the CFIF if the
> recordcount is 1, 2, 300...
> 
> It is NOT the same as saying, "as long as there is *one* record returned,
> true".
> 
> Right?
> 

-- 
View this message in context: 
http://www.nabble.com/Boolean-use-of-Recordcount-tf2266507.html#a6289791
Sent from the Cold Fusion - Technical forum at Nabble.com.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:253019
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to