# Conditions

Conditions within OBJ files are supported since X-Plane 10 only. However OBJ files containing conditions also work in X-Plane 9 but simply get ignored.

X-Plane 10 supports the conditionalization of OBJ files. Conditionalization is a process whereby the contents of a file are skipped or used depending on rendering settings. Typical uses of conditionalization are to change the appearance of an object when shadows are enabled, or when HDR is on.

To make use of conditions in XPlane2Blender do the following:

1. In the Scene tab under XPlane set the X-Plane version to at least 10.0x\
   &#x20;![](/files/-LdPU-IjVynnmNgzg487)
2. **To conditionally hide/show an object:** Select an object and within the Object tab under XPlane click on **"Add Condition"**.\
   &#x20;![](/files/-LdPU-IlAARH_KDD66kq)\
   &#x20;\
   &#x20;**To conditionally hide/show all object with a material:** Select an object and within the Material tab under XPlane click on **"Add Condition"**.
3. Now select a condition from the dropdown and choose if this condition should be true or not.

   &#x20;The object(s) will be only visible if the condition is met.

If you think this is a good thing [buy me a beer](https://github.com/tngreene/XPlane2Blender-docs/tree/045bbe7764e1127748c3df734a632bfbc1a1199d/Donations/README.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xp2b-docs.gitbook.io/xplane2blender-docs/index-1/conditions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
