Actually, these will not return the same value. Lets assume the query returns 0 records.
<cfreturn isStudentEmployee.recordcount = 0 /> will return true <cfreturn isStudentEmployee.recordcount /> will return false On Wed, Jan 26, 2011 at 1:43 PM, Charlie Griefer <charlie.grie...@gmail.com> wrote: > > On Wed, Jan 26, 2011 at 11:31 AM, Adam Bourg <adam.bo...@gmail.com> wrote: >> >> I solved it with the first couple of posts help. >> >> <cfif isStudentEmployee.recordcount eq 0> >> <cfreturn true> >> <cfelse> >> <cfreturn false> >> </cfif> > > Glad you got it working. > > You can tighten that return up a bit by doing: > > <cfreturn isStudentEmployee.recordcount = 0 /> > > Then no need for the conditional. > > You could also drop the comparison itself since CF does implicit > boolean conversion. > > <cfreturn isStudentEmployee.recordcount /> > > ^That'll do the same thing. > > -- > Charlie Griefer > http://charlie.griefer.com/ > > I have failed as much as I have succeeded. But I love my life. I love > my wife. And I wish you > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341418 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm