This example shows you how to use if statement in velocity. Description of methods used in the example given below....1:- Initialize velocity run time engine through method init().
#set($list = ["A", "B", "C", "D", "E"]): This is a statement named 'set', generally begins with # character. Here we have assign the list with character $.
The #if allows for text on the conditional that the if statement is true.
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: August 27, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles