Project

General

Profile

Feature #263

Please add NullTool to allow readable checks for null

Added by Patrick Ruhsert about 13 years ago. Updated about 13 years ago.

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

#1

Updated by Patrick Talbot about 13 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).

#2

Updated by Patrick Talbot about 13 years ago

  • Status changed from New to Closed

Fixed in version v1.4.10

Also available in: Atom PDF