[ http://issues.apache.org/jira/browse/VELOCITY-50?page=all ]

Henning Schmiedehausen updated VELOCITY-50:
-------------------------------------------

    Bugzilla Id:   (was: 7386)
    Component/s: Engine
                     (was: Source)

> RFE: invalid parameters for #if directive should be a parse error?
> ------------------------------------------------------------------
>
>                 Key: VELOCITY-50
>                 URL: http://issues.apache.org/jira/browse/VELOCITY-50
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 1.5
>         Environment: Operating System: All
> Platform: PC
>            Reporter: Daniel Dekany
>            Priority: Minor
>             Fix For: 1.6
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to