Not sure, haven't used Velocity for a long time but comparing strings with "==" doesn't seems right. Have you tried equals instead?
On 25 March 2010 00:47, Anil h k <[email protected]> wrote: > > Hi , > > I am trying to read a multiple checkbox in velocity this is my code. > > #foreach( $additional_province in > $opportunity.additional_provinces_821102568) > { > #if ($opportunity.additional_provinces_821102568.checked == true) > { > #if ($opportunity.additional_provinces_821102568.value == > "Quebec") > { > #set($value1 = "CSST"); > } > #end > #if (additional_provinces_821102568.value == "Ontario") > { > #set($value1 = $value1 + "WSIB"); > } > #else > { > #set($value1 = $value1 + "WSB"); > } > #end > } > #end > } > #end > > can anyone let me know what is wrong in this.. i just cannot get this right > . > > thanks ! > -- > View this message in context: > http://old.nabble.com/Velocity-html-help-tp28019574p28019574.html > Sent from the Velocity - User mailing list archive at Nabble.com. > -- Regards, Alexander
