[jasperreports-questions] Print 0 when null

2006-09-07 Thread John Dunn
I want to print 0 when my numeric value(BigDecimal) is null. Ireports allow me to set the value displayed to "Blank when null", but is it possible to print 0 instead? John Dunn Product Consultant Direct Dial +44 (0) 117 373 6122 Sefas Innovation Ltd, CityPoint, Temple Gate, Bristol BS1 6PL, UK.

Re: [jasperreports-questions] Print 0 when null

2006-09-07 Thread Borut Hadžialić
($F{value} != null) ? $F{value} : new BigDecimal("0") On 9/7/06, John Dunn <[EMAIL PROTECTED]> wrote: > I want to print 0 when my numeric value(BigDecimal) is null. > > Ireports allow me to set the value displayed to "Blank when null", but is it > possible to print 0 instead? > > > John Dunn > Pro