hi,
try it like this:
#set($content =
"$fileelementlist.get(2).get(0).getTourID()$fileelementlist.get(2).get(0).getTotalSeats()")
#set($isautopnr=$fileelementlist.get(2).get(0).isIsautomatedpnraddress())
#if($isautopnr)
#set($content =
"${content}$fileelementlist.get(2).get(0).getElementId()$fileelementlist.get(2).get(0).getAutomatedPNR()")
#end
$content
i didn't test it but it should work. i don't know if there is a more
elegant solution.
christian
Isuru Nishan wrote:
Hi All,
I wan to get the results coming from the template
#set($content = "$fileelementlist.get(2).get(0).getTourID()$fileelementlist.get(2).get(0).getTotalSeats()")
and
#set($isautopnr=$fileelementlist.get(2).get(0).isIsautomatedpnraddress())
#if($isautopnr)
#set($content =
"${content}$fileelementlist.get(2).get(0).getElementId()$fileelementlist.get(2).get(0).getAutomatedPNR()")
#end
$content
to the same line.
When I run this two templates results are in two different lines.I want to get
them to the same line.Pls help!!!
ISuru
---------------------------------
Click here to donate to the Hurricane Katrina relief effort.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]