>Is it a good practice though? I know alot of people do it, but it just >seems >wrong to me to be evaluating a number as boolean.
Personally, I like to write code that's as specific as possible. Only if a variable is to hold a true Boolean value, do I use the <cfif isConditionTrue> syntax. So, I write the statement as: <cfif query.recordCount gt 0> While the two syntaxes currently result in the same thing, I find the above to be more accurate and more descriptive. Also, on the very, very off chance that the behavior of how CF evaluates numbers would ever change; I don't have to update code. -Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:253028 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

