Jump to content
We've recently updated our Privacy Statement, available here ×

expression editor - if field1 > field2 text: credit amount else debit amount


bernhardFW

Recommended Posts

Jaspersoft Studio 6.1.1

On a report I like to print the text "Guthaben/Credit Amount" if field1(value) is greater then field2(value) - else print "Nachzahlung/Debit amount"?

How to achive that?

I tried this recommended example:  (( $F{BETRAG} > $F{VORAUSZAHLUNG}) ? msg(Nachzahlung) : msg(Guthaben))

But error says: "the operator  ' > ' is not defined for argument type BigDecimal, int 

thanks for ur help !

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...