-
-
Notifications
You must be signed in to change notification settings - Fork 33
conditions
nixie123 edited this page Dec 6, 2024
·
12 revisions
layout:
images:
1:
name: example
conditions:
1:
first: (number)papi:player_x
second: 1
operation: '>='
gate: or
can use it almost anywhere: images, layouts (text layout, image layout), popups, etc.
displayed when the condition is met.
types: '>', '>=', '<', '<=', '==', '!='
only '==', '!=' are available for string types.
comparison works like this first >= second
types: and , or
default: and
sets the method of the condition.
conditions:
1:
first: "papi:player_x"
second: "'1'"
operation: '=='
to compare numeric text when it's a string, you need to use something like "'1'".
in this case, the papi in first is not prefixed with (number), so it is a string type,
and if you put second: 1
, it will be recognized as a number, so you will get an error.
(vice versa)
conditions:
1:
first: "[papi:player_x]"
second: "'1'"
operation: '=='
don't use [] when using PAPI in conditions.