do different equation depending on ">= / branch" output?

This is the graph I made for you. Let me know if you have any questions.