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:33:16 UTC
DO NOT REPLY [Bug 7385] New: -
Assignment operator in #if condition results in false
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=7385>.
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=7385
Assignment operator in #if condition results in false
Summary: Assignment operator in #if condition results in false
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 code bellow will print No always. IMO it should be a parse error, especially as it is a frequent
mistake to accidentally exchage == and =. (Or should print Yes because x = z as an expression is
traditionally z, but then the assigment should be done which is not a good idea.)
#if($foo =
'xxx') Yes #else No #end
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>