Expressions query?

Started by DigPeter, January 30, 2014, 12:25:36 PM

Previous topic - Next topic

DigPeter

I am using expressions such as: {File.Categories|filter:Subject;level:3}, for instance in the category A|B|C|D this would give C

Is it possible to designate an element counting from the bottom by using a negative number;  that is {File.Categories|filter:Subject;level:-2}, again to give C?  Or is there another method?

I thought that I had read this somewhere in the Help topics, but cannot find it.  It would be useful, where the number of elements vary under a top node.

@Mario:  If it is possible to arrange this, I will raise a feature request.

Mario

#1
You can access the leaf, the root and all levels in-between using an index. There is no other way, and no negative index.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

DigPeter

Quote from: Mario on January 30, 2014, 06:34:18 PM
You can access the lead, the root and all levels in-between using an index. There is no other way, and no negative index.
Thanks, Mario.  Would it be possible to provide this?

Mario

Sure, someday. Add a feature request for it. I'm doing small changes all the time.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

DigPeter


DigPeter

@Mario
Thanks for fixing that.  I hope that other people might find it useful too. :D

OT I would be grateful if you take a quick look at https://www.photools.com/community/index.php?topic=1666.msg10597#msg10597 .  Do you think you might be able to solve this problem in due course?

Mario

I keep an eye on all bugs. Currently I'm working in another area.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

DigPeter

OK, thanks - as I said, in due course  :)