> I'd say that's a slightly kludgy hack that I only mention > because the 'right' solution was proposed and overruled. > You're implicitly coercing the numeric result returned by > 'len' into a boolean value, which works, because of the > typeless nature of CF. By using a numeric comparison that > returns boolean, you avoid implicit coercion, which makes the > code easier to read. It's a subtle difference, but it's > worth that extra keystroke, IMHO.
Whilst I agree with you about implicitly coercing the numeric result, I'm sure I've heard Mr Cofield (or rathter certain guidelines) advocate that very method in coding guidelines... Are the ones I got out of date of have I got my memories completely mixed up? -- dc ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204714 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

