How do I set a property to one of two values?

I want to set a property to either a variable or -1 if the variable is exactly equal to 0. How would I do this?

You can use a CASE statement to conditionally determine the value to save.

https://neo4j.com/docs/cypher-manual/current/syntax/expressions/#query-syntax-case