> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Element properties

> Edit element properties on the Advanced tab of pre-search relations in FlexiLayout Studio, view generated code, and add if-then-else conditions.

You can change the properties of an element on the **Advanced** tab of the **Advanced pre-search relations** section. Here you can edit both the properties you set in an element's **Properties** dialog box and some additional properties.

<Note>
  Any properties you set on the first two tabs preceding the **Advanced** tab in the **Properties** dialog box are interpreted by the FlexiLayout Studio compiler as a sequence of operators that are the parameters (properties) of the corresponding elements described in this section. To view the code generated for a property, click the **Code** button on the **Advanced** tab.
</Note>

You can edit and copy the code displayed on the **Code** tab, or use it to write your own code with `if`, `then`, and `else` operators.

The following example checks whether the elements `Element1` and `Element2` have been detected. If at least one of the elements has not been detected, FlexiLayout Studio looks for a vertical separator. Otherwise, it looks for a horizontal separator.

```text theme={null}
If (Element1.IsNull == False) or (Element2.IsNull == False) then
Mode: Vertical;
Else
Mode: Horizontal;
```

Element properties are described in detail in the sections that follow.
