Node.opBinaryRight

"in" operator to check for an attribute inside a node

struct Node
bool
opBinaryRight
(
string op
)
(
string key
)
if (
op == "in"
)

Examples

if ("href" in node) writeln("Link: ", node["href"]);

Meta