velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tal Dayan" <>
Subject Integers and numbers in a comparison expression
Date Sat, 14 Jul 2001 01:42:34 GMT

If a template has a numeric comparison such as

#if ($num > 7)

Does $num have to be an Integer or can it also be a Long or even a String ?

What about the case where $num did not come externaly from the application
Java code
but from the template itself as in

#set $num = 3

Will the numeric comparison still work ok ?

What about

#set $num = "3" ?



View raw message