Owner's manual

150
NIRWare Suite NIRWare 1.5 Software Manual
Save the new property and change the position if necessary:
Example 1: Dry Matter
Add conditionality based on the residual:
if(ApProperty["Moisture"].ResidualOK)
{
CalculatedValue = 100 - ApProperty["Moisture"].Value;
}
If CalculatedValue is not defined in the formula the value will be set to a very high or low number which
one might want to avoid. In this case it is advised to define CalculatedValue to a value which the user will
interpret as not valid, e.g. -999.
In this example CalculatedValue is defined as -999 and only if the residual of the moisture is OK, is the
DM calculated.
CalculatedValue = -999;