Does YAML Path Have Value (Condition) — skript-yaml

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

Syntax

[skript-]y[a]ml [(node|path)[s]] %strings% (of|in|from) %string% has [a] value[s]

Description

Checks if one or more values exist at a path in a cached YAML file using said ID. - First input is the path. - Second input is the ID. - If multiple paths are checked at once it will return false on the first one found to not contain a value.

Examples

set skript-yaml value "test.test" from "config" to "test"
 
yaml path "test.test" in "config" has value:
	broadcast "value exists"

View source