Warning - This is a digression:

Doesn't CF do numeric to Boolean conversion as a convenience?

IOW, CF will automatically cast resulting 0 as FALSE and >0 as TRUE for us, when used in an evaluation.

Therefore just <cfif Len(request.iMemberGtwy.getHelp())> should work, as would <cfif val("3 bats, ha ha ha") > or <cfif NOT val("foo") >

Now I wonder which one takes more cycles in your code... explicitly adding the "GT 0" or just letting CF figure it out internally.
Ya know, "Occam's razor" and all that stuff...

Al

P.S. Bonus points for getting the Sesame Street reference

On 11/20/2011 6:51 PM, Matthew Woodward wrote:
On Sun, Nov 20, 2011 at 6:39 PM, Lionel Morrison <[email protected]> wrote:
<cfif len(request.iMemberGtwy.getHelp) GT 0>

Needs to be:
<cfif Len(request.iMemberGtwy.getHelp()) gt 0>

Note the () after getHelp--without those you're not calling the method that returns the string.

--
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en

--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en

Reply via email to