How to get the number of elements on the data stack?

79 views Asked by At

Is there a possibility to get the count of elements on the stack?

For example if the stack looks like this:

--- Data stack:
1
1
1

the result should be 3.

1

There are 1 answers

1
Randy Voet On

This should do the trick:

datastack length