Remove last slice if it's 0 and output the slice before

Hi there,

There is an AvoidNIL node which gets some input values (-1 to +1). Default is 0.
If the node receives nothing (NIL) he should output not 0 but the last slice, which is not 0.
Like a slicestore, which outputs only the slice before the last slice.

any ideas?

like this?

OnNILReturnLast (Value).v4p (3.6 kB)

yeah, thanks, see