Node Comparisons

Node comparisons: is, <<, >>

The is operator compares two nodes for equality (are they the same node?). The operators << and >> compare document order of nodes.

$recipe is key('recipes', 'Vegetable Frittata')

is true if and only if there is exactly one recipe that matches “Vegetable Frittata” in the recipes key and $recipe is that recipe.