We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

[Lists] Object # Last-1

Home Forums Puzzles [Lists] Object # Last-1

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34344
    matthew
    Customer

    Hey guys,

    how do I get object #last-1 from a list?

    #34350

    Hi,

    you can first find out how many objects your list contains using the length puzzle.

    Then you need to calculate a correct index. The last element will have index length-1. So the last-1 will have index length-2.

    Finally you can get the object from the list by its index (that is, length-2).

    Chief 3D Verger | LinkedIn | Twitter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.