Create Conditions/Progress authored by Brickgard's avatar Brickgard
Evaluate the output of an asset layer's listener.
### Attributes
---
| **Attribute** | Aliases | **Description** |
| ------------- | ----------- | ------------------------------------------------------------------- |
| `layer` | `lay`, `l` | The asset layer with the listener to evaluate. |
| `value` | `val`, `v` | The value to compare the layer progress against - can be a percent. |
| `operation` | `oper`, `o` | [Logical Operator](Conditions/Logical-Operator) to compare with. |
### Example
---
Hides the Asset in its HUD layout if the `air` listener used in the `fill` asset layer is ever less than 100% (so air is in use):
```yaml
vanilla-air:
conditions: #Hide if the fill layer is empty.
- progress{l=fill;o=<;v=100%} true hide
layers:
icon:
texture:
path: assets/vanilla/air.png
offset:
x: -5
y: 2
fill:
texture:
path: assets/vanilla/exp_bar_short_fill.png
color: "#525aff"
offset:
x: 0
y: 0
function:
listener: air
increment: 13
orientation: horizontal
```
\ No newline at end of file