adionicio Posted February 7, 2020 Share Posted February 7, 2020 Hello there, im trying to set a style that activates if the value of the field is less or greater than zero, I have tried doing something like this $F{field_name} > 0.0, but its says that operator "<" is undefined, I also tried something like new Double($F{field_name}.doubleValue() >0.00) but then it says The constructor Double(boolean) is undefined, can someone help me? Link to comment Share on other sites More sharing options...
bigalex Posted February 10, 2020 Share Posted February 10, 2020 Try expression:new boolean $F{field_name}<0.0) Link to comment Share on other sites More sharing options...
I am Leo Posted February 11, 2020 Share Posted February 11, 2020 1st way: java.lang.Double.valueOf($F{field_name}) > java.lang.Double.valueOf("0")[/code]2nd way:java.lang.Double.compare(java.lang.Double.valueOf($F{field_name}), java.lang.Double.valueOf("0")) > 0[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now