A while back I chastised someone for not using proper String comparison operators in their templates. I looked in the Velocity code and sure enough "==" operators are translated into equals. So I was looking a bit stupid.
Somebody challenged me to come up with a situation where the equality "==" operator doesn't work with Strings. Well, finally, I've just found an example in my code; #if ($SummarySortField==$Field.getUdmFieldName()) This statement doesn't produce a true, neither does this; #if ($SummarySortField==${Field.getUdmFieldName()}) But this version does:- #if ($SummarySortField.equalsIgnoreCase($Field.getUdmFieldName())) I thought perhaps I was going mad before when I raised this and plenty of people on this list questioned me, but can anyone explain this? Steve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]