[
https://issues.apache.org/jira/browse/VELOCITY-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910872#action_12910872
]
Christopher Schultz commented on VELOCITY-774:
----------------------------------------------
You can also do
#set($foo = false)
...which I believe has the same effect. I use this at the bottom of loops all
the time to make sure that I don't get in-loop variables bleeding-over one loop
iteration into the next.
> Provide #unset directive
> ------------------------
>
> Key: VELOCITY-774
> URL: https://issues.apache.org/jira/browse/VELOCITY-774
> Project: Velocity
> Issue Type: New Feature
> Components: Engine
> Affects Versions: 1.7-beta1
> Reporter: Michael Osipov
>
> Sometimes one wants to use a variable in a certain scope because the further
> existence might lead to errors. I declared var with #set should be
> unsettable. See VELOCITY-773 for a iuse case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]