On Wed, Jan 26, 2011 at 11:31 AM, Adam Bourg <[email protected]> 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:341402
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to