velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <>
Subject Re: Null Value?
Date Fri, 15 Jul 2005 15:24:27 GMT
Use the silent notation.


Good luck with Velocity.  Let us know if you've more q's.


----- Original Message ----- 
From: "Bayarsaikhan VOLODYA" <>
To: "Velocity Users List" <>
Sent: Friday, July 15, 2005 7:28 AM
Subject: Null Value?

Hi all.

my .vm file is here;

#foreach( $user in $users )
<b>Middle Name:</b> $<br> 

it outputs the something like this. 

Middle Name: MyMiddleName
Middle Name: $
Middle Name: test Name

since the second <> object has no value. null 
how to set velocity not to output $ i want it just 
output nothing if property is null.

thanks a lot.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message