Thank you for the information. -----Original Message----- From: Shinobu Kawai [mailto:[EMAIL PROTECTED] Sent: Monday, June 06, 2005 2:17 PM To: Velocity Users List Subject: Re: compare float?
Hi Nick, > 1) We have been using velocity 1.3.1-rc2 and have a requirement where we > need to compare floats in velocity templates. So we need to do > something like > > #set($afloat=$floatObject.gpa) > > #set($gpaWarning = 2.7) > > #if ($afloat <= $gpaWarning) > > academic probation letter.... > > > > Can this be done in 1.5-dev? If we need to put the gpaWarning value > into context, we can do that if it cannot be declared in the template. > Is that needed? Yes it can, so no it's not. As an alternative, you can create a $floatObject.isGpaUnderWarningValue() method. :) > 2) We have quite a bit of code that depends on 1.3.1-rc2, is 1.5-dev in > a stable state? The developers are trying their best to keep the code base working. I would trust it, but it's up to you to decide. > 3) What is the URL to get the Velocity 1.5-dev version? http://cvs.apache.org/snapshots/velocity/ Best regards, -- Shinobu -- Shinobu Kawai <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
