Negating Conditionals

Parent Previous Next

Negating conditionals

We may wish to negate a condition to retrieve the opposite. For any conditional in the form:


Its negation would be:


So, referring to the test tree in the introduction topic, we might want to find all nodes that do not have a child node called X. The path for this would be: