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

Doing calculations in a report IF statement.


gregory.west
Go to solution Solved by javier.ggi90,

Recommended Posts

Is this allowable in Jasper Studio:

IF(($V{DID_BW}==0 && $V{DID_Colour}==0),0,($V{DID_Copy}/($V{DID_BW}+$V{DID_Colour})))

This is the assignment for a variable that is being printer on a report.  What I am trying to do is print 0.00 is DID_Colour and DID_BW are both zero, otherwise do the calculations.  This is being done to prevent the divide by zero error from happening.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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