Exists/Is Set (Condition) — Skript

Addon: Skript · Category: Condition · Since: 1.2

Syntax

%~objects% (exist[s]|(is|are) set)

Description

Checks whether a given expression or variable is set.

Examples

{teams::%player's uuid%::preferred-team} is not set
on damage:
	projectile exists
	broadcast "%attacker% used a %projectile% to attack %victim%!"

View source