Back to Aurora Vision Studio website
You are here: Start » Filter Reference » Data Flow » Loop Utils » LastNotNil
Module: | FoundationLite |
---|
Returns the last value passed that existed.
Name | Type | Description | |
---|---|---|---|
inObject | <T>? | Object that may be chosen | |
inInitialObject | <T> | Object to be used before first proper object appears | |
inReset | Bool | Reset accumulator state | |
outObject | <T> | The last object that existed | |
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.