DIM

Returns the positive difference of the instantaneous values of two expressions, each representing a numerical value.
DIM(x1, x2) = 0 if
DIM(x1, x2) = x1-x2 if x1 > x2
 
Note:  
DIM is a discontinuous function and must be used with caution.

Format

DIM(x1,x2)

Arguments

 
x1
Any valid expression that evaluates to a real number.
x2
Any valid expression that evaluates to a real number.

Example

The following function returns 0 as long as , and TIME - 5 for TIME > 5. TIME is the current simulation time.
DIM(TIME,5)