DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7386>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7386 Problems with string and numerical literals in boolean expressions Summary: Problems with string and numerical literals in boolean expressions Product: Velocity Version: 1.2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Source AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The 3 lines below will print two No-s and one Yes: #if('foo') Yes #else No #end #if(1) Yes #else No #end #if(true) Yes #else No #end while the 4 lines bellow will print two Yes-es as expected: #set($x = 'foo') #if($x) Yes #else No #end #set($x = 1) #if($x) Yes #else No #end Also, the 2 lines below will print false: #set($x = 'x' && true) $x (Please ignore possible false line breaks inserted by bugzilla.) Tried with 1.2 Stable and 1.3 Nightly 22/03 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
