Back to Aurora Vision Studio website

You are here: Start » Filter Reference » Data Flow » Loop Utils » LastNotNil

LastNotNil


Module: FoundationLite

Returns the last value passed that existed.

Name Type Description
Input value inObject <T>? Object that may be chosen
Input value inInitialObject <T> Object to be used before first proper object appears
Input value inReset Bool Reset accumulator state
Output value outObject <T> The last object that existed
Output value outIndex Integer Index of iteration when the last object appeared

The type of this filter is defined using the type variable T which represents any valid type. Read more.

Examples

Description of usage of this filter can be found in examples and tutorial: Dynamic Template Matching, Hand-Eye Calibration - On Filters.

Remarks

  • This filter can be replaced the following formula:
  • One can achieve the same effect by simply using conditional connections on the outputs of a task macrofilter.
  • Instantiating this filter with a conditional type will cause Nil value on the output until a first non-Nil appears.

Complexity Level

This filter is available on Basic Complexity Level.