---
title: "How do I define the path to an attribute correctly?"
url: "https://openforis.support/questions/33/how-do-i-define-the-path-to-an-attribute-correctly"
tags: ["collect"]
status: "accepted"
score: 0
answer_count: 1
asked: "2014-10-09T21:13:22"
last_activity: "2014-10-09T21:45:28"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# How do I define the path to an attribute correctly?

Asked by Andras on 2014-10-09

Hello,

I'd like to refer to an attribute in a relevancy expression, but the attribute I want to refer to is some levels higher. How do I go about this?

attribute to refer to: /sample_plot/region

attribute with expression: /sample_plot/trees/samplecandidate

Thanks!


## Accepted answer (score 0, by Stefano (OF) on 2014-10-09)

Link: https://openforis.support/questions/33/how-do-i-define-the-path-to-an-attribute-correctly/38

Hi, you have to consider that the expression defined in the attribute **samplecandidate** will have the entity **trees** as context, so it will be evaluated starting from that node.
The expression you need will be something like this: **parent()/region = 'REGION_CODE'**.
Thanks
