MikesLab Plugins
Identity
Identity
  • 🌟Identity Wiki
  • General
    • Installation
    • Commands
    • Placeholders
  • CONFIG
    • Introduction
    • Input GUI
    • Value GUI
    • Selector GUI
    • Main GUI
    • How to install your GUI configs
  • Element
    • Element
    • Conditions
    • Actions
  • RESOURCE
    • Colors
  • GUI
    • Layout
    • Page System
  • DATABASE
    • Setup your First Connection
      • MongoDB
      • SQL
      • JSON
Powered by GitBook
On this page
  • Visibility Conditions
  • Logical Operators
  • Examples
  • Resources
  1. Element

Conditions

Visibility Conditions

Conditions are based on expressions containing one or more operators. You can use both Placeholders from PlaceholderAPI and internals from the Value GUI (%value%).

Item Visibility Conditions

Conditions dictate item visibility. If you don't define a base element without a condition, the last condition-satisfied element may remain visible even if its condition is no longer met.

Logical Operators

Operator
Description

==

An equality relationship between two elements can be represented using the double-equals sign

!=

A not equals B

>=

A greater than or equal B

<=

A less than or equal B

<

A less than B

>

A greater than B

||

OR, at least one condition needs to be true Example: A <= B || B == B B == B: True A <= B: False Result: True

&&

AND, a pair of conditions needs to be true Example: A <= B && B == B B == B: True A <= B: False Result: False

Examples

"%value% <= 5 && %player_name% == Michael"

"%playerpoints_value% > 1 || %your_favorite_placeholder% != 0"

Resources

PreviousElementNextActions

Last updated 10 months ago

Logical Operators:

https://press.rebus.community/programmingfundamentals/chapter/logical-operators/