Does YAML Path Exist (Condition) — skript-yaml

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

Syntax

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

Description

Checks if one or more paths exist 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 exist.

Examples

set skript-yaml value "test.test" from "config" to "test"
set skript-yaml value "test2.test2" from "config" to "test"
 
yaml path "test.test" and "test2.test2" in "config" exists:
	broadcast "this works"
yaml path "test.test" and "boop.boop" in "config" exists:
	broadcast "this will fail"

View source