isDefined or "" doesn't work


I invoked a cfc.

Here is what I get for my dump <cfdump var="#letterbody_guarRet#">
query - Rows: 1
   APPT_DATE   FIRST_NAME GUARADDR1 GUARCITY GUARFNME GUARNME
1 {ts '2000-04-07 00:00:00'}  first_name   guar_city  guarantor_fname  guarantor_lname  SC  12345


Notice there is no information for GUARADDR1.  That is correct. I'm trying to
have an if statement to direct what to do in that situation. However nothing
seems to work.  

When I use
<cfif not isDefined('letterbody_guarRet.guaraddr1')

it doesn't work.
I tried it the opposite way:
 <cfif isDefined('letterbody_guarRet.guaraddr1')

and that worked so the  'letterbody_guarRet.guaraddr1' must be defined as something.  

I tried:
<cfif #letterbody_guarRet.guaraddr1# is "">
and that didn't work either.

What can I use if isDefined and "" doesn't work?
djb80Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

js_vaughanCommented:
Try <cfif letterbody_guarRet.guaraddr1 EQ "">

If that doesnt work try:

<cfif Trim(letterbody_guarRet.guaraddr1) EQ "">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
js_vaughanCommented:
Also, if neither of those work for some reason you may try:

<cfif Len(Trim(letterbody_guarRet.guaraddr1)) EQ 0>
0
RCorfmanCommented:
I think I've read that the fastest is
<CFIF Len(TRIM(letterbody_guarRet.guaraddr1))>
  it has data here
<CFELSE>
  No data here
</CFIF>
0
PluckaCommented:
djb80,

Your problem is simple, this line

<cfif #letterbody_guarRet.guaraddr1# is "">

Should be

<cfif letterbody_guarRet.guaraddr1 is "">

Regards
Plucka
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.