You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2002/03/23 10:48:21 UTC
DO NOT REPLY [Bug 7386] New: -
Problems with string and numerical literals in boolean expressions
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: velocity-dev@jakarta.apache.org
ReportedBy: ddekany@freemail.hu
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>