It seems like an html issue with the img src url not correct.
Try putting some text in the if/else and see which one gets called.
Something like this:
#if ($needMoreInfo == 'Y' )
##<img src="images/needmoreinfo.gif">
image is displayed here
#else
##<img src="images/1x1.gif">
another image is here
#end
I suspect it maybe an issue with <img src=...> not having the correct URL.
Jian
On 5/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have a simple velocity question.
>
> <span name="reportDataCell" datafld="needMoreInfo">
>
> This line displays the value of my data field correctly it is either a Y or
> a blank space
>
> I would like to display an image instead of the character
> I have tried the following but it does not seem to work correctly. Can
> anyone tell me what I am doing wrong.
>
> #if ($needMoreInfo == 'Y' )
> <img src="images/needmoreinfo.gif">
> #else
> <img src="images/1x1.gif">
> #end
>
>
>
>
>
> -----------------------------------------
> This message and any attachments are intended only for the use of the
> addressee and may contain information that is privileged and confidential.
> If the reader of the message is not the intended recipient or an authorized
> representative of the intended recipient, you are hereby notified that any
> dissemination of this communication is strictly prohibited. If you have
> received this communication in error, notify the sender immediately by
> return email and delete the message and any attachments from your system.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]