Velocity test for binary data

Hi,

In a Velocity template I need to test for content in a binary column. The column is part of the dataset and all I need is to know if it contains data. With other datatypes I would simply test this by calling the variale

e.d.

#if($column)

#end

but for the binary column I can nog get this to work.

I have tried

#if($binary_column)
#if($binary_column != ‘’)
#if($binary_column.length >0)

but none seem to have an effect.

How do I test for this?

Wouter.

Try using:

$null.isNull($yourVariable)

or

$null.isNotNull($yourVariable)

Hi Patrick,

That did the trick. Thanks!

Wouter.