Parent Previous Next


Table of Contents

  Simple Conditionals

  Related Path Conditionals

  Negating Conditionals

  Combining Conditionals

Conditionals add an extra element to path syntax. In their simplest form, they allow returning of nodes based on a given property value. However, they can also be used to check for the existence of related nodes.

A conditional is specified within square brackets after a path element.

So, a simple example might be returning all nodes that are a child of B that has the property named ‘Test’ equals ‘123’: