AutoPatrol, Bureaucrats, Administrators
683
edits
(Created page with "__NOTOC__ Find node object by node id or node name. == Syntax == FindNodeObject(''node'', ''id''); == Parameters == :{| |- | ''node'' || Node object, you can use predefi...") |
|||
Line 12: | Line 12: | ||
:{| | :{| | ||
|- | |- | ||
| ''node'' || Node object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see notes for more information). | | ''node'' || [[NXSL:Node|Node]] object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see notes for more information). | ||
|- | |- | ||
| ''id'' || ID or name of the node to find. | | ''id'' || ID or name of the node to find. | ||
Line 20: | Line 20: | ||
== Return Value == | == Return Value == | ||
Node object with given id or name on success or '''null''' on failure (either because node with given name/id does not exist, or access to it was denied). | [[NXSL:Node|Node]] object with given id or name on success or '''null''' on failure (either because node with given name/id does not exist, or access to it was denied). | ||