- operator

Synopsis
This operator performs a subtraction or negation operation.
Variations
Minuend - Subtrahend
Performs a subtraction operation between 2 numerics or 2 timestamps.
Parameters
Minuend

The minuend.

Supported types: Numeric; TimeStamp.
Subtrahend

The subtrahend.

Supported types: Numeric; TimeStamp.
Returns
Returned types: Numeric.
Remarks
Remarks
  • The subtraction operation is the only operator which allows the use of timestamps. Furthermore, timestamps cannot be subtracted from anything other than another timestamp.
  • The time returned will be the difference between the 2 timestamps in sec.
  • Timestamp subtraction can be used across multiple cameras.
Examples
1.

The following example will return 3.

(5 - 2)
2.

The following example will return the difference between the current time and the grab time.

(TimeStamp.Time - Camera.GrabTime)
- Number
Performs the negation operation.
Parameters
Number

The number to negate.

Supported types: Numeric.
Returns
Returned types: Numeric.
Examples
1.

The following example will return -5.

(-5)