Hi,

I have a value of the type Long in an object passed to vm template, is 
there any way to compare it to an integer in the template, 
eg.
 #if ($myLong == 1)
do something
#end

I tried the above but got "Error in evaluation of != expression. Both 
arguments must be of the same Class" error. I'm trying not to change 
anything in the original .java class so the only option is to compare it 
within the velocity template. 

Any help would be appreciated. Thank you!

Erica


Reply via email to