ArchiveOrangemail archive

dev.velocity.apache.org


(List home) (Recent threads) (3 other Apache Velocity lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 6,992 messages, beginning Nov 2006
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

ternary operator.

Ad
Ravindra Medarametla 1226624415Fri, 14 Nov 2008 01:00:15 +0000 (UTC)
Hi, 

Could you tell me  whether velocity templates ternary opertatot(?:)?

Thanks,

Ravindra.
Claude Brisson 1226653350Fri, 14 Nov 2008 09:02:30 +0000 (UTC)
No. But you can do:

#set($value = "#if($flag)red#{else}blue#end")


  Claude
On jeu, 2008-11-13 at 17:31 -0600, Ravindra Medarametla wrote: > Hi, > > > > > > Could you tell me whether velocity templates ternary opertatot(?:)? > > > > > > Thanks, > > Ravindra. >
Home | About | Privacy