Inside a Jasper report, I'd like to have something with two non-cumulative variables (computed for each record) :
var_age : a calculation of age based upon elements of the current record.
var_sanitized_age : something that takes var_age and changes its value if needed
So far it seems to me that I can't control in which order these variables will be computed. And that this could have var_sanitized_age either use var_age's previous value, or fail.
Is there a way to have Jasper correctly compute one variable, with an expression that uses the values of one or several other variables ?
And as a natural extension to this question, could I define a cumulative variable named var_sanitized_age_average that would reliably average upon one of the variable's latest value ?