Feature #263
Please add NullTool to allow readable checks for null
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/06/2011
Due date:
% Done:
0%
Estimated time:
Browser (if web client):
Description
I found it tricky to check a value for null (not 0). Could you maybe add support for the NullTool (http://wiki.apache.org/velocity/NullTool)? Then we could do
#if( $null.isNull($car.fuel) )
History
Updated by Patrick Talbot about 14 years ago
Actually NullTool is not part of the velocity-tools 2.0 jar that I use.
But the code is straightforward so I added a NullTool class of my own.
Will be available in next version (coming in a bit).
Updated by Patrick Talbot about 14 years ago
- Status changed from New to Closed
Fixed in version v1.4.10