Hi!

I would like to check some of the attributes of the next to last item of a list of items, e.g. recorded trees. How do I do that?

Thanks!

asked 09 Oct '14, 20:56

Andras's gravatar image

Andras
18482253
accept rate: 0%


Suppose that you have a calculated attribute tree_num inside the "tree" entity using this expression: idm:position(); then you can select the trees from next to last item with an expression similar to this (valid for attributes defined inside the "tree" entity): parent()/tree[tree_num > $this/parent()/tree_num]. The expression $this/parent()/tree_num is used to reference the tree_num of the tree into which the attribute is defined. Thanks.

permanent link

answered 09 Oct '14, 21:39

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×494

question asked: 09 Oct '14, 20:56

question was seen: 7,770 times

last updated: 09 Oct '14, 21:39