Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Loop Utils » LastNotNil

LastNotNil
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Returns the last value passed that existed.
Syntax
void fil::LastNotNil ( const typename ftl::ToConditionalType<const Type&>::Type& inObject, const T& inInitialObject, bool inReset, T& outObject, int& outIndex )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inObject | const typename ToConditionalType<const Type&>::Type& | Object that may be chosen | |
![]() |
inInitialObject | const T& | Object to be used before first proper object appears | |
![]() |
inReset | bool | False | Reset accumulator state |
![]() |
outObject | T& | The last object that existed | |
![]() |
outIndex | int& | Index of iteration when the last object appeared |
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.