---
title: "Multiple relevant criterias"
url: "https://openforis.support/questions/2630/multiple-relevant-criterias"
tags: ["collect"]
status: "accepted"
score: 0
answer_count: 2
asked: "2020-01-23T16:12:29"
last_activity: "2020-01-28T10:23:44"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Multiple relevant criterias

Asked by Sabrina on 2020-01-23

Hey
I want to formulate criteria under which an attribute is displayed. For this purpose I used the "Relevant" box. 
An attribute should only be displayed if a specific code was selected for a previous code attribute.
For example: Attribute "Height" only appears if it is not a lying tree. I tried tree!=tree=2 (if 2=lying trees). But it did not work. Can you help?

Many thanks


## Accepted answer (score 1, by Rajkumar on 2020-01-23)

Link: https://openforis.support/questions/2630/multiple-relevant-criterias/2631

oh! I think you wrote code in wrong way. It should be like this (tree != 2 and tree !=3 ) where tree is an attribute and 2 or 3 is value that can be evaluated. you should write like this code under the box of "Height" attribute. Remember "Height" is wrong it should be "height".

> Hi Rajkumar! Thanks a lot for your answer. With this code it worked. (Sabrina)

## Answer (score 0, by Stefano (OF) on 2020-01-23)

Link: https://openforis.support/questions/2630/multiple-relevant-criterias/2633

Dear Sabrina,  
What's the name of the tree status attribute?  
If the attribute is called *tree_status* then the **Relevant when** expression can be something like this:  
**tree\_status = 2**  
Many thanks,  
Open Foris Team
