Try...

   <cfset the_image = 'img src="">    <cfif Len(Trim(imagePath)) NEQ "">
      <cfset the_image = 'img src="">    </cfif>

HTH,

Mike

> I have a DB where I insert text from a form.  If the text is
> blank, I still go through and insert it.  I thought I could
> check on it in the display area with:
>
> <CFOutput query="people_search">
>       <cfset the_image = 'img src=""> >       <cfif imagePath NEQ "">
>            <cfset the_image = 'img src=""> >       </cfif>
> ....
>
> The NEQ "" doesn't seem to work in this situation.  It
> doesn't like <cfif imagePath NEQ NULL>.  So what should I do
> to see if this field is empty or not?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to