Branch Elements

A branch element changes between several elements, depending on the state of objects (windows, desks, monitors) in the context where it appears, and on Litestep variables. A branch element is one of the elements listed in (prefix)Branches. For each of those elements, (element-name)Condition is a boolean expression which defines when it should be used. If several conditions are satisfied, the first element whose conditions are satisfied is the one used. If no condition is specified for an element, that element is always used unless the conditions are met for an element which appears before it.

Branch elements inherit common layout options.
(prefix)Branches [element-list]
Mandatory Setting
Applies to: Branch elements
A list of the possible elements this branch element may be rendered as. The first of the elements listed whose condition is fulfilled will be used.
(prefix)Condition [boolean-expr]
Default: true
Applies to: Children of branch elements
The condition under which this element will be used.

Boolean Expressions

Condition expressions may use the & (and), | (or), and ! (not) operators, boolean RC variables (which are considered false if not defined), plus the following keywords:

Litestep variables used in conditions are read once, on initialization, unless (prefix)UpdateVars [bool] is set to true (default false), in which case they update every time the layout is checked for changes. Operators in branch condition expressions are right-associative; & and | have the same precedence, but may be parenthesized.