velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <>
Subject Re: Extra space appearing in the if /else block
Date Sat, 12 Mar 2005 17:14:47 GMT
Gagan 007 <> wrote:
> #if ($obj.isPreviousEmployee())Yes #else NO 
> if the value of isPreviousEmployee() is true then it works ok(it displays 
> if the values of isPreviousEmployee is false then is displays NO (extra 
space before NO Appears)
> as there is a space between #else and NO (we cannot write #elseNO in the 

#if ($obj.isPreviousEmployee())Yes#else#**#NO

#* this is a velocity inline comment, good for removing spaces after 
#directives *#
## this is a velocity to-end-of-line comment, good for removing newlines

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

View raw message