Changes
Page history
feat: add new Logical Operator info
authored
Jul 22, 2026
by
Boy0000
Hide whitespace changes
Inline
Side-by-side
Conditions/Placeholder.md
View page @
32f5aed2
...
@@ -11,6 +11,9 @@ If a string is provided, the values will be checked if they match.
...
@@ -11,6 +11,9 @@ If a string is provided, the values will be checked if they match.
|
`value`
|
`val`
,
`v`
,
`2`
| The second value/placeholder to compare. |
|
`value`
|
`val`
,
`v`
,
`2`
| The second value/placeholder to compare. |
|
`operation`
|
`oper`
,
`o`
|
[
Logical Operator
](
Conditions/Logical-Operator
)
to compare with. |
|
`operation`
|
`oper`
,
`o`
|
[
Logical Operator
](
Conditions/Logical-Operator
)
to compare with. |
When using a
[
range operator
](
Conditions/Logical-Operator#range-operators
)
, the
`value`
attribute must be in the format
`lower..upper`
.
\
The placeholder value is parsed as a number and checked against the range.
### Example
### Example
---
---
Various condition examples using the Player PAPI expansion:
Various condition examples using the Player PAPI expansion:
...
@@ -21,4 +24,6 @@ Various condition examples using the Player PAPI expansion:
...
@@ -21,4 +24,6 @@ Various condition examples using the Player PAPI expansion:
-
placeholder{ph=%player_is_flying%;v=yes}
true
hide
-
placeholder{ph=%player_is_flying%;v=yes}
true
hide
# Hide if player's light level is less than 5.
# Hide if player's light level is less than 5.
-
placeholder{ph=%player_light_level%;v=5;o=>}
true
hide
-
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
```
```
\ No newline at end of file