Node (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.10

Syntax

[the] node %string% (of|in) %node%

Description

Returns a node inside a config (or another section-node). Nodes in Skript configs are written in the format `key: value`. Section nodes can contain other nodes.

Examples

set {_node} to node "language" in the skript config
if text value of {_node} is "french":
	broadcast "Bonjour!"
set {_script} to the current script
loop nodes of the current script:
	broadcast name of loop-value

View source