Jump to content
JasperReports Library 7.0 is now available ×

Condition larger then


dewie

Recommended Posts

Hi i trying to do a conditional style

 

For that i have to make a condition that checks if a value is larger then another value.

 

I have tried :

 

new Boolean($F{hour_max} > $P{task_minutes)

 

But i get an > invalid operateror for double.

I tried to google, but could not find a solution

 

Any ideas ?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

The error you got was

 

invalid operateror for Double

 

Double is a object

double is a primative

 

Wehen doing a comparison of that sort it must be between two primative values.

 

Try

 

new Boolean($F{hour_max}.doubleValue() > $P{task_minutes}.doubleValue())

Link to comment
Share on other sites

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...