I recommend studying section about logical modeling in the excellent book by HP Williams (https://www.wiley.com/en-us/Model+Build ... 1118443330. Basically, make two equations, introduce binary variables that control if an equation holds and then make sure at least one of the binary variable is 1.