YAML Node Is Type (Condition) — skript-yaml

Addon: skript-yaml · Category: Condition · Since: 1.7.2

Syntax

y[a]ml (node|path) %string% (of|in|from) %string% is [a] (list|node|value)

Description

Checks if a YAML node is a specific type (list, value, or node).

Examples

if yaml node "test1.test2" of "config" is value:
    broadcast "It's a value!"
else if yaml node "my.list" of "config" is list:
    broadcast "It's a list!"
else if yaml node "test1" of "config" is node:
    broadcast "It's a node!"

View source