You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
PREVAL returns a previous case value
Syntax
PREVAL(Case_Par, NumExp)
Arguments
- Case_Par is the parameter from which a previous case value is requested
- NumExp is a numeric expression is the number of cases back from which the value is to be taken.
- PREVAL is an essential function to describe processes on a time axis in the form of differential schemes.
- If the indicated case number is less than 1, the value of case 1 is taken. In case a previous value is not available, the Modeller will go back to that case and will attempt to derive the value by placing it in the goal list. Under normal circumstances this will be a PENDING starting value.
- Important: Case_Par should be a parameter and no value or any other numeric expression.
Examples
Let the current case number be 9, then
PREVAL(A,3)
will return the value for A in case number 6 (9-3=6)