> > > Not according to the FM documentation I read - FM does not throw an > > exception when an IF conditional contains anytyhing other > than a boolean reference. > > > I don't know what documentation did you read, but > http://www.freemarker.org/docs/ref_directive_if.html clearly says "The > condition-s must evaluate to a boolean value, or else an > error will abort template processing".
Attila - I did read that :-) And it is not what I want. I don't want an evaluated boolean expression... only a boolean reference. #if ($foo == $bleck) -> Bzzzt. Throws an error #if ($foo > $bleck ) -> Bzzzt. Throws an error #if ($foo) assuming foo is an instanceof Boolean, then this would be fine. Freemarker doesn't do that. Velocity doesn't do that. I must remind, I don't care how FM does or doesn't do it - this was and is a Velocity question. If I wanted to know how I could make FM do this, I will join the freemarker mailing lists. Thanks, Tim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
