List Length

https://user-images.githubusercontent.com/14288520/187519011-8e55b053-801f-43f1-9d45-727a11633ca1.png

Functionality

The Node equivalent of the Python len() function. The length is inspected at the Level needed.

Inputs

Takes any kind of data.

Parameters

  • Level: Set the level at which to observe the List. Min Level is 0.

Outputs

Depends on incoming data and can be nested. Level 0 is top level (totally zoomed out), higher levels get more granular (zooming in) until no higher level is found (atomic). The length of the most atomic level will be 1, for instance single ints or float or characters. The output will reflect the nestedness of the incoming data.

Examples

Often a few experiments with input hooked-up to a debug node will make the exact working of this Node instantly clearer than any explanation.

ListLengthDemo1.PNG ListLengthDemo2.PNG