Placeholder
Compares placeholders and inputs logically.
If only the placeholder (attribute 1) is defined, the condition will check it for true/false.
If both values provided are numbers, they will compare using the Logical Operator provider.
If a string is provided, the values will be checked if they match.
Attributes
| Attribute | Aliases | Description |
|---|---|---|
placeholder |
ph, 1 |
The first value/placeholder to compare. |
value |
val, v, 2 |
The second value/placeholder to compare. |
operation |
oper, o |
Logical Operator to compare with. |
When using a range operator, the value attribute must be in the format lower..upper.
The placeholder value is parsed as a number and checked against the range.
Example
Various condition examples using the Player PAPI expansion:
# Hide if player's direction is not south.
- placeholder{ph=%player_direction%;v=S} false hide
# Hide if player is flying.
- placeholder{ph=%player_is_flying%;v=yes} true hide
# Hide if player's light level is less than 5.
- placeholder{ph=%player_light_level%;v=5;o=>} true hide
# Hide if player's light level is not between 5 and 10 (inclusive).
- placeholder{ph=%player_light_level%;v=5..10;o=..} true hide