It works with the hack from Denis. Thaks Martin
Could it be that $col.getSize() returns a long and not an int? Velocity cannot deal with longs :( So the hack Denis proposed would be the last option. Peter > -----Original Message----- > From: Martin Nattrodt [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 8:57 AM > To: '[EMAIL PROTECTED]' > Subject: How to compare numbers with strings > > > Hello, > > I have a problem. > > I want do something like: > > #if ( ( $col.Type == "VARCHAR") && ( $col.getSize() > 255 )) > #set ( $type2 = "BLOB" ) > #set ( $size = "" ) > #end > > The expression: > ($col.getSize() > 255 ) > does not work. > > > ($col.getSize() == "4000" ) > works with $col.getSize() is 4000 > > but > ($col.getSize() == 4000 ) > does not work. > > > How can I compare a int with a String? > > regards > Martin > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
