Depending on the result reported from one MATCH I would like to have different WHERE clauses. Is that possible?
A simple case is that if the first MATCH returns a null then I want to have one MATCH with WHERE and if it is not null I want a different MACTH,
An alternative is of course to do it in two seperate cypher queris and check the result from the first
You can do it with APOC, there is the procedure apoc.case (read only queries) & apoc.do.case (read & write queries) that do exactly what you want : Neo4j APOC Procedures User Guide
You need to use OPTIONAL MATCH instead of MATCH if you want the results to include null values. After OPTIONAL MATCH you can use either APOC or a CASE plus UNWIND or FOREACH statements.