IF VARIABLE
Used to execute the code inside it if a certain condition related to the value of a variable is met.examples
Check if a number variable is lessthan or equal to another number
Check if a string variable contains
a certain string
Check if a variable is equal
to something
Actions
Number ≤ | <= (aka. )
Item Has Enchantment | ItemHasEnchant (aka. )
Item Is Block | ItemIsBlock (aka. )
Dictionary Value Equals | DictValueEquals (aka. )
Item Has Custom Tag | ItemHasTag (aka. )
String Matches | StringMatches (aka. TextMatches )
Tags
name:
Regular Expressions
default: Disable
options: Enable
, Disable
name:
Ignore Case
default: False
options: True
, False
String Starts With | StartsWith (aka. )
Tags
name:
Ignore Case
default: False
options: True
, False
List Value Equals | ListValueEq (aka. )
Value Is Type | VarIsType (aka. )
Tags
name:
Variable Type
default: Number
options: Number
, String
, Styled Text
, Location
, Item
, List
, Potion effect
, Sound
, Particle
, Vector
, Dictionary
| TextMatches (aka. EqIgnoreCase)
Tags
name:
Regular Expressions
default: Disable
options: Enable
, Disable
name:
Ignore Case
default: False
options: True
, False
| IsNear (aka. VIsNear)
Value Is Within Range | InRange (aka. )
Tags
name:
Location Handling
default: Exact
options: Block
, Exact
Variable Exists | VarExists (aka. )
| Legacy != (aka. )
Block Is Solid | BlockIsSolid (aka. )
Item Equals | ItemEquals (aka. VItemEquals)
Tags
name:
Comparison Mode
default: Exactly equals
options: Exactly equals
, Ignore stack size
, Ignore durability and stack size
, Material only
List Contains Value | ListContains (aka. )
Tags
name:
Check Mode
default: Has Any Value
options: Has Any Value
, Has All Values
| Legacy = (aka. )
| InRange (aka. )
Location Is Near | LocIsNear (aka. )
Tags
name:
Shape
default: Sphere
options: Sphere
, Circle
, Cube
, Square
String Contains | Contains (aka. )
Tags
name:
Ignore Case
default: False
options: True
, False
Value != | != (aka. )
Number < | < (aka. )
Value = | = (aka. = )
Number > | > (aka. )
String Ends With | EndsWith (aka. )
Tags
name:
Ignore Case
default: False
options: True
, False
Number ≥ | >= (aka. )
Dictionary Has Key | DictHasKey (aka. )