neil.gambin Posted July 5, 2018 Share Posted July 5, 2018 Hi All,I am new to JasperSoft and I am having some difficulty with the coding of a variable - The variable I am trying to create is similar to that the concept of Bands - i.e - If amount less than 5K, display 5, if Amount greater than 5000.01 and smaller than 10K, display 10... so on.The basis of the variable expression is as follows - ( $F{amount}.compareTo( new java.math.BigDecimal("1") ) >= 1 ) ? "€ 5.00" : "NA" - I have tried creating seperate variables but everytime i add variables using the '+' function, it displays both the 5 and 10 and NA in the field. Any ideas on how I can overcome this? Thanks. 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